Exit Codes on Reverse Tunnel bug?

JL Picard jlpicard15 at hotmail.com
Thu Nov 11 10:25:46 EST 2010


I ran the following command to create a reverse tunnel from another server back to my local host
ssh -4xnT -o PreferredAuthentications=publickey -o ConnectTimeout=10 -o BatchMode=yes -f \
-o ExitOnForwardFailure=yes -N -R myTargetHost:2525:myLocalHost:25 myUser at myTargetHost

and on machine=myTargetHost, the port 2525 was already being utilized, so it gave me this error and exited:
     Error: remote port forwarding failed for listen port 2525

However, when I got the exit code it returned a zero (Successful exit code)


When I try to attach to a localhost port that is being utilized using the (-L) option, ssh exits with a 255 exit code.  

So at very least it appears to be inconsistent behavior between the two tunneling methods.

The version I am using is:  OpenSSH_5.4p1
Platform is Solaris 10 Sparc on both machines (and before anyone asks, I am not using Sun/Oracle's version of SSH, I am using the version at www.opencsw.org)

Thanks in advance for any response you can provide.

 		 	   		  


More information about the openssh-unix-dev mailing list