What is the recommended way to ssh through a proxy? I've been using putty, compiled from source, as it has a proxy option, but a native option would be very nice. Thanks. Scott
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/31/07, Scott Ehrlich wrote:> What is the recommended way to ssh through a proxy? I've been using > putty, compiled from source, as it has a proxy option, but a native option > would be very nice.Some of the info and linkage here looks promising: http://www.meadowy.org/~gotoh/projects/connect - -- Andy Harrison public key: 0x67518262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHKLCcNTm8fWdRgmIRAhY9AJ9WlHe5XUNTyXCoF7NRRChobrCX/QCcDRhZ n9OT46SYy4NhEvTdkmYCi/Y=d9Mb -----END PGP SIGNATURE-----
Salam, Please explain ur proxy running linux??? if then why u use putty??? The windows desktop users use putty or secure crt to ssh.... why not using default shell provided by proxy, The best way of ssh is to use keys to login, with this method u r not prompted for password.... just key verification on both ends. Regards, Umair Shakil ETD On 10/31/07, Scott Ehrlich <scott at mit.edu> wrote:> > What is the recommended way to ssh through a proxy? I've been using > putty, compiled from source, as it has a proxy option, but a native option > would be very nice. > > Thanks. > > Scott > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20071101/be746d11/attachment.html>
Scott Ehrlich wrote:> What is the recommended way to ssh through a proxy? I've been using > putty, compiled from source, as it has a proxy option, but a native option > would be very nice.If I understand what you want to do, you can use the builtin ssh ProxyCommand Let's say you want to connect from your home machine to various machines in the .imag.fr domain, going through sshgate.imag.fr (the only host in imag.fr that is accessible by ssh from the outside). On the home client, make a file called config in your ~/.ssh/ dir. Mine looks something like this: [nico at localhost ~]$ cat ~/.ssh/config Host *.imag User nico ProxyCommand ssh nico at sshgate.imag.fr "nc $(basename %h .imag) %p" Then I can type "ssh host1.imag", and it works. It's also fine with sftp, scp, and pretty much anything that runs over ssh. nc has to be installed on sshgate, but it most probably is (might be called netcat). You have to type 2 passwords unless you use ssh key authentication, which you should (at least between home and sshgate). hope this helps. Nico TM