Bug 391

Summary: ssh -n returning 255 status code
Product: Portable OpenSSH Reporter: steve.ridgley
Component: sshAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: All   
OS: Solaris   

Description steve.ridgley 2002-09-05 01:18:12 AEST
Using openSSH3.4p1 on Solaris8 , we are having problems with 'ssh -n' returning 
status code 255 (from echo $?).  We have some proprietary code executing ssh - 
n, and trapping the return status and aborting the script.

We have seen the thread on MARC realting to a similar problem in OpenSSH2.9p1 
that says it will be fixed in the future. Our sysadmin guys are reluctant to 
apply the suggested 2.9 patch to 3.4.

The command that 'succeeds' but returns 255:

/usr/local/bin/ssh -q -o BatchMode=yes <remotenode> -n -l 
<remoteusr> /usr/bin/true

Without the -n, 'echo $?' returns 0
Comment 1 Markus Friedl 2002-09-11 08:17:47 AEST
do you have output from
ssh -vvv ?
Comment 2 Damien Miller 2003-01-07 21:34:06 AEDT
4 months, no followup == no bug
Comment 3 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED