Bug 1151 - meaningful return codes under request
Summary: meaningful return codes under request
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 4.3p1
Hardware: Other All
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-08 04:14 AEDT by Salvador Fandiño
Modified: 2006-02-08 04:14 AEDT (History)
0 users

See Also:


Attachments

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