socks and misc patch to 2.9.9p2

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Sun Oct 7 11:31:38 EST 2001


Out of interest what is wrong with 'ProxyCommand' for handling this?  This
is kinda why this was design for to support socks and other proxy type
software without the nasty #ifdef/#endif code.

[.. ssh.1 ..]
     ProxyCommand
             Specifies the command to use to connect to the server.  The
	     command string extends to the end of the line, and is
             executed with /bin/sh. In the command string, `%h' will be
             substituted by the host name to connect and `%p' by the port.
	     The command can be basically anything, and should read from
             its standard input and write to its standard output.  It
             should eventually connect an sshd(8) server running on some
             machine, or execute sshd -i some where.  Host key management
             will be done using the HostName of the host being connected
             (defaulting to the name typed by the user).  Note that
             CheckHostIP is not available for connects with a proxy
             command.
[..]

[.. Example in readconf.c ..]
   Host puukko.hut.fi
     User t35124p
     ProxyCommand ssh-proxy %h %p


- Ben

On Sat, 6 Oct 2001, Michael Robinton wrote:

> Attached is a very small patch that allows the ssh clients to use the
> socks5 library. It should work with socks4 but is untested.
>
> Tested on linux only
> configure --with-socks
> configure --with-socks5
>
>
> Also included is a configure option to disable scp statistics
>
> --disable-scp-stats
>
> modified files
>
> openssh-2.9.9p2/acconfig.h
> openssh-2.9.9p2/channels.c
> openssh-2.9.9p2/configure.in
> openssh-2.9.9p2/includes.h
> openssh-2.9.9p2/scp.c
> openssh-2.9.9p2/sshconnect.c
>
> autoconf and autoheader need to be run
>
> patches change only a line or two of actual C code in each file, most of
> the changes are in the configure script
>
> Hope this makes it into the distribution :-)
>
> Michael Robinton
> michael at bizsystems.com
>




More information about the openssh-unix-dev mailing list