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.