You can do it as...
You can also use ProxyCommand entries inside your ~/.ssh/config file to connect to remote servers in custom ways.ssh -t shmem@gateway ssh -t admin@host.example.com \ ssh -t wrxd15@192.168.123.2 ssh -t root@192.168.254.2
For instance, to connect to foo.net.org via other.server.org via my.server.org...
And then...# .ssh/config Host foo ProxyCommand ssh me@my.server.org \ ssh me@other.server.org \ ssh root@foo.server.org /usr/sbin/sshd -i
ssh foo
In reply to Re: ssh chain
by salva
in thread ssh chain
by shmem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |