Displaying 1 result from an estimated 1 matches for "d2085".
Did you mean:
2085
2007 Jan 16
0
patch to enable ssh use sock fd 3,4
...d, sockaddr_in($bind_port, inet_aton $bind_addr)) || die "bind: $!";
listen($sfd,SOMAXCONN) || die "listen: $!";
accept (Cfd,$sfd);
close $sfd;
open 3,"<&Cfd";
open 4,"<&Cfd";
if(! grep fileno(Cfd) == $_,(3,4)) { close Cfd;}
exec {ssh} qw(ssh -D2085 -oProxyCommand=:socket: user at sshd_host);
So if you pass -oProxyCommand=:socket: to ssh it will not make a new child
but use those 2 fd.
diff -rNu openssh-4.5p1/sshconnect.c openssh-4.5p1-ssh-socket/sshconnect.c
--- openssh-4.5p1/sshconnect.c 2006-10-23 20:02:24.000000000 +0300
+++ openssh-...