Bug 391 - ssh -n returning 255 status code
Summary: ssh -n returning 255 status code
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: -current
Hardware: All Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-05 01:18 AEST by steve.ridgley
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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