Xshell Forum

ssh passthrough as proxy

Last post: Wednesday, September 9, 2015 12:28 PM by Wong, 7 reply

 
Friday, May 7, 2010 4:06 AM - Matthias

ssh passthrough as proxy

 
Hi,

when creating a ssh connection it is possible to set another ssh server as a proxy by choosing 'SSH_PASSTHROUGH' as the proxy and entering the IP/user/password of the proxy server.

But when I try to connect, xshell only connects to the proxy server and not to the machine i want to connect to. Maybe I misunderstood this feature? For security reasons, I have to connect to a ssh server first (the proxy) and from there connect to the machine I want to work on.


Regards,
Matthias

Program Ver. : Xshell 3.0
Thursday, May 13, 2010 12:56 AM - Support

Re: ssh passthrough as proxy

 
SSH_PASSTHROUGH is specially designed feature for one of our partners products, GateOn.

In general, you can use the expect and send feature to accomplish the same. This feature is under Logon Scripts in session Properties.

With the expect and send feature, you can set to expect the terminal prompt and send the connection information for the destination server.

Hope this helps.

---
Technical Support
Sunday, June 9, 2013 4:27 PM - Matt

Re: ssh passthrough as proxy

 
Just a suggestion for anyone who needs an SSH proxy/jumphost: since SSH_PASSTHROUGH doesn't work, there is a better option than using expect.

Create a separate session to your ssh proxy host, and start a dynamic forwarding tunnel. Open that session first, then use the tunnel as a SOCKS5 proxy for your other hosts.

The reason this is better than using expect is because it will work for Xftp too.
Friday, July 12, 2013 2:24 AM - Dmitriy

Re: ssh passthrough as proxy

 
Can you please explain this more precisely?
I made first connection to my intermediate server and started dynamic socks5 tunnel. If i use some other applications (firefox, for example), I can see, that it's using this tunnel and everything goes well. But I also want to connect to other servers using this tunnel. How can I setup new connection so that it'll forward everything to the tunnel. Just don't see any settings to do that.
Friday, July 12, 2013 2:40 AM - Andrew

Re: ssh passthrough as proxy

 
You can't do that with SOCKS5 tunnel. To make connection SSH connection, you have to use outgoing SSH tunnel.
Tuesday, October 7, 2014 11:46 PM - acne

Re: ssh passthrough as proxy

 
I want to fake ip via ssh xshell. Can you help me Acne?
Thursday, October 9, 2014 9:27 PM - Support

Re: ssh passthrough as proxy

 
You can't hide IP address by just using Xshell. You can try using a VPN.

---
Technical Support
Wednesday, September 9, 2015 12:28 PM - Wong

Re: ssh passthrough as proxy

 
that's cool, i use login script for this.
Attachment q1.png (12.2 KB)