At my company, In order to SSH into anything, I first have to SSH into an intermediary server like so:
(me@local.machine) ssh intermediary.server.com
(me@intermediary.server.com) ssh application.server.com
(root@application.server.com) this is the command prompt I want to be at
I would like to make a bash alias, so that I can run a single command on my local machine and get dropped into the desired machine's "command prompt".
Is this possible?
netcat
ornc
installed on the bastion host? – D_Bye Jan 19 '15 at 17:54ProxyCommand
in your local~/.ssh/config
to hop to remote from intermediary:Host remote\n ProxyCommand ssh -W %h:%p intermediary
– jasonwryan Jan 19 '15 at 17:59