answered 10 years ago
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'\'''