On 2014-02-23, at 13:13, Raphaël Proust wrote: > This is very interesting. The main complaint I have towards dtach(1) > (I have the same complaint about screen(1) and tmux(1), but for those > it's not the *main* complaint) is the need to first ssh into an > interactive session. I'd like to do `dtach -a > <user>@<remote>:<path-to-session>`.
You do not need to ssh into an interactive session. I use this script, which I call run-screen: #!/bin/sh host="$1" # blank means local cmd="screen -D -R" [ "$host" ] && cmd="ssh -t $host bash -l -c \"$cmd\"" exec $cmd