News for hackers. Stuff that matters.
Re:Simplify your life with an SSH config file by beagle3 on Saturday October 20, 2012 @01:17PM (#4677586)
I'll try it for the predictive text ... but, what do you mean "you don't have to login again"? I use a public key login on ssh (so login is invisible), and you can set up your ssh command line in your config file to do so, e.g. I often use

    ssh [email protected] -t 'screen -x || screen'
And it works beautifully. (I'm heavy screen user, so even if I switch to mosh, there will be screen underneath...)
Re:Simplify your life with an SSH config file by gcr on Saturday October 20, 2012 @03:06PM (#4677922)
According to the manpage, `screen -DR` will detach the remote screen if it exists and reattach your session. No need to use shell conditionals or ||.
Re:Simplify your life with an SSH config file by beagle3 on Saturday October 20, 2012 @04:55PM (#4678200)
Ah, but I don't want it detached! I often do pair programming or pair sysadminning through screen. Is there an equivalent that works with screen sharing ? ( -x )
Re:Simplify your life with an SSH config file by ryan-c on Saturday October 20, 2012 @08:08PM (#4678507)
I have my .profile set up to auto-attach to a default screen session, which works with -x.

http://blog.ryanc.org/?p=5