Connect through SSH gateway (jump host)

999 views
Skip to first unread message

Petri Karppinen

unread,
Jan 28, 2016, 1:07:41 PM1/28/16
to iterm2-discuss
Hi, is the iTerm2 supporting in the multi-hop? Example I first like to contact server1 which asking to passwords and when I login, I have to jump another server2.

Matt Wagenknecht

unread,
Jan 29, 2016, 6:55:23 PM1/29/16
to iterm2-discuss
I like this idea. I would use this feature often. My current solution is to open two tabs. one for the initial ssh connection to the jumpbox, one for the ssh session through the jumpbox. This can also be accomplished with the following command.. 

ssh -A -t user@jumpbox ssh -A -t  user@2ndhost
Message has been deleted

Richard Mitchell

unread,
Jan 29, 2016, 9:30:52 PM1/29/16
to iterm2-discuss
What makes this better than using the ProxyCommand in the user's ssh config file?  For example,

Host DEST
ProxyCommand ssh HOST -W %h:%p

where HOST is the intermediate system you have to bounce through.  Both port and user can be defined for the host.  One can also reference a host that also uses ProxyCommand, allowing many hops to be defined to ultimately get to the final system.  With the use of ssh keys, one doesn't even get asked for a password.

George Nachman

unread,
Jan 30, 2016, 11:38:50 PM1/30/16
to iterm2-...@googlegroups.com
There isn’t built-in ssh support in iTerm2, so it's really a question for openssh.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages