Exit Codes on Reverse Tunnel bug?

Damien Miller djm at mindrot.org
Thu Nov 11 21:07:09 EST 2010


Could you try 5.6p1? I think I fixed this bug in August.

On Wed, 10 Nov 2010, JL Picard wrote:

> 
> 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.
> 
>  		 	   		  
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
> 


More information about the openssh-unix-dev mailing list