Bug 1151

Summary: meaningful return codes under request
Product: Portable OpenSSH Reporter: Salvador Fandiño <sfandino>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 4.3p1   
Hardware: Other   
OS: All   

Description Salvador Fandiño 2006-02-08 04:14:37 AEDT
Hi,

I am the author of Net::SFTP::Foreign, a perl module implementing an sftp client on top of ssh (it just runs "ssh foo -s sftp" and then talks sftp).

Several of my users have asked me for a way to know what went wrong when the connection fails but ssh always returns 255. So what I would like to see is a way to request ssh to return a different error code (maybe via a new command line flag) for every error condition (for instance, host not found, connection refused, authorization failed, etc).

Cheers,

  - Salvador.