by olifante · 4y ago · 0 comments
sshcreen () {
ssh -t "$@" screen -xRR
}
Works with bash and zsh. Usage is pretty simple: $ sshcreen user@example.com
Or for local Docker instances mapped to port 2222: $ sshcreen root@localhost -p 2222
Detach the session with CTRL-A + D, reattach by rerunning the sshcreen command you previously used.No comments yet.