First time here? Check out the FAQ!
answered 2014-12-21 21:50:54 +0100
Looks like I forgot the -t flag to the second ssh. It works with
$ssh -t user@host1 ' screen -mS sage ssh -t host2 sh -c '\''cd /path/to/working/directory;sage'\'''