Local port forwarding does not work with AIX 5.1 or AIX 5.2. The same results occur with both OpenSSH_3.4p1 and OpenSSH_3.6.1p2. ssh segmentation faults when the connection is made to the local forwarded port. Debug out put follows. debug1: Connections to local port 24800 forwarded to remote address 192.168.1.100:23 debug1: Local forwarding listening on 127.0.0.1 port 24800. debug1: fd 4 setting O_NONBLOCK debug2: fd 4 is O_NONBLOCK debug1: channel 0: new [port listener] debug1: Entering interactive session. debug1: Connection to port 24800 forwarding to 192.168.1.100 port 23 requested. debug1: fd 5 setting TCP_NODELAY debug2: fd 5 is O_NONBLOCK debug2: fd 5 is O_NONBLOCK debug1: channel 1: new [direct-tcpip] Memory fault(coredump)
What compiler are you using? If it's the gcc-2.9whatever from the AIX toolbox CD, I suspect it's a compiler problem (I've seen it miscompile openssl and I suspect it of causing another couple of problems). FWIW 3.6.1p2 works for me on 5.1 and 5.2 (compiled with gcc 3.3): $ echo `uname` `oslevel` AIX 5.2.0.0 $ ssh -v -L 2000:127.0.0.1:22 localhost OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f [snip] debug1: Connection to port 2000 forwarding to 127.0.0.1 port 22 requested. debug1: channel 2: new [direct-tcpip] debug1: channel 2: open confirm rwindow 131072 rmax 32768 debug1: channel 2: rcvd eof debug1: channel 2: output open -> drain debug1: channel 2: obuf empty debug1: channel 2: close_write debug1: channel 2: output drain -> closed [snip]
Compiled with gcc 3.3.1 and local port forwarding worked. Original tests were done with openssh that was compiled with xlc "IBM Visual Age C/C++" and also with the openssh binaries distributed by IBM and bullfreeware.
Mass change of RESOLVED bugs to CLOSED