1
I love to use screen, but I haven't really had much experience using it over ssh. At work I recently was issued a shell account and I decided to try to configure it so that screen gets run when I login. I'm logging in remotely via ssh with putty.
Anyway, I had two methods that both seemed to work pretty well:
- configured putty to run /usr/bin/screen -R upon connecting and
- added this line to my .bashrc:
if [ -z "$STY" ]; then /usr/bin/screen -R; fi
The problem is that later on I tried to scp some files I couldn't connect. It said "Must be connected to a terminal". I also tried Filezilla and it had major connection problems. I did some googling and apparently I'm not the first person that's had sftp get messed up by trying to use screen as a login shell. http://winscp.net/forum/viewtopic.php?t=1715
I was wondering if anybody could provide some insight into why this is happening because I really have no clue and I would be interested to understand it and maybe find a workaround.
Thanks. I didn't even think of that, but it makes sense. If scp is processing bashrc and opening a screen session, I guess it might produce some unexpected behavior. – shwoseph – 2014-01-20T03:38:32.780