Comments on: Hopping from host to host with SSH, automatically /2010/10/20/hopping-from-host-to-host-with-ssh-automatically A collection of note-to-self's Sun, 24 Mar 2019 23:04:45 +0000 hourly 1 https://wordpress.org/?v=5.1.1 By: Niobos /2010/10/20/hopping-from-host-to-host-with-ssh-automatically/comment-page-1#comment-2153 Fri, 22 Oct 2010 19:03:45 +0000 http://blog.dest-unreach.be/?p=1887#comment-2153 SSH doesn’t allocate a PTY (pseudo-terminal) when executing a command. You can however force it to by adding a -t flag to the first SSH-command.

This, however, doesn’t yield the exact same result as the ProxyCommand explained above, since you are using SSH on the intermediate host. This implies that you need to have agent-forwarding (the -A flag, as you already figured out), but also that port-forwardings (-L and -R) are done to/from the intermediate host instead of your local machine!

]]>
By: Christophe Vandeplas /2010/10/20/hopping-from-host-to-host-with-ssh-automatically/comment-page-1#comment-2152 Fri, 22 Oct 2010 18:35:25 +0000 http://blog.dest-unreach.be/?p=1887#comment-2152 You can also do “ssh -A imset.org ssh apeiron.fosdem.org”,
but then you are not using a normal interactive terminal on the second host.

So I’m looking into another way to get a terminal…

]]>