[LUNI] SSH Trickery
Jeffrey Garrett
jeff at jgarrett.org
Fri Feb 9 00:44:33 CST 2007
> [dmourati at demetri2 ~]$ ssh -l root ops2
> Last login: Wed Feb 7 22:22:22 2007 from mynat.snvacaid.covad.net
> [root at ops2 ~]# ssh -l root threeprodds1
> Last login: Wed Feb 7 22:18:49 2007 from ops2.lnc.rnmd.net
> Kickstart-installed on Fri Jan 26 00:55:20 GMT 2007
> [root at threeprodds1 ~]#
>
> What I'd like is a setup that would let me get around this:
>
> [dmourati at demetri2 ~]$ ssh -l root threeprodds1
> ssh: connect to host threeprodds1 port 22: No route to host
I didn't see this mentioned yet, but you can use netcat + ProxyCommand
to do this. Put this in your ~/.ssh/config:
Host threeprodds1
ProxyCommand ssh -l root ops2 nc threeprodds1 22
Then you can just issue the "ssh -l root threeprodds1".
More information about the luni
mailing list