SSH from within OpenSSH

Hussain Akbar hussainakbar at gmail.com
Fri Jan 11 21:07:48 EST 2013


Ben

Hmm... it appears to me that what you say would work but not in my case; I
don't want to SSH from linux to W2K3. Instead, I want to SSH from Win7
laptop to Linux via a W2K3 server which is in the middle.

Thx
Hussain

On Fri, Jan 11, 2013 at 12:00 PM, Ben Lindstrom <mouring at eviladmin.org>wrote:

>
> You consider using socks proxy?
>
> On your linux box do:
>
> $ ssh -D 8080 user at win2k3server
>
> Then in another window on the same linux box:
>
> $ ssh -o ProxyCommand='socat - SOCKS4A:win2kserver:%h:21,socksport=8080'
> LANB-server
>
> using:  http://www.dest-unreach.org/socat/  as your ProxyCommand ?
>
> I know OpenSSH supports SOCKS5 (use it all the time), but not sure about
> 4A, and my memory of that time is fuzzy around that conversation.  Which
> means you may have to use SOCKS4  and use IP address for the LANB machines
> or /etc/hosts files or ~/.ssh/config  files to clean it up and define the
> machines.
>
> e..g
>
> host LANB-server
>         ProxyCommand='socat - SOCKS4A:win2kserver:%h:21,socksport=8080'
>         HostName IP.OF.HOST
>
>
> Note this is completely untested by me.. I just know a few others have
> done things much like this in my circle.
>
> - Ben


More information about the openssh-unix-dev mailing list