ssh and attach to a screen in one line.: "$ ssh -t user@host screen -x <screen name>
If you know the benefits of screen, then this might come in handy for you. Instead of ssh'ing into a machine and then running a screen command, this can all be done on one line instead. Just have the person on the machine your ssh'ing into run something like
screen -S debug
Then you would run
ssh -t user@host screen -x debug
and be attached to the same screen session.
by David Winterbottom (codeinthehole.com)
(Via Command-Line-Fu.)
No comments:
Post a Comment