Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: sftp status error/status code |
|---|---|
| Date: | Fri, 13 Apr 2007 09:54:18 -0700 |
sftp != ftp
I don't think there are response codes, like you are talking about.
SFTP was created as an example of an external service. So, bearing that in mind, I think these are error messages as it comes from STDERR from the sftpd binary.
Is there a way to receive "sftp status codes" as part of the sftp command response message on stdout, when an sftp command is issued on stdin.
For instance: Issuing the "get" command interactively to an ftp server, I receive the following response on stdout:
550 filename: No such file or directory.
The same command sent to an OpenSSH sftp server receives the following response:
Couldn't stat remote file: No such file or directory. File "/local/abbb/foo" not found.
I need to programmatically extract the status code off the stdout output. However, I haven't found a way to get the "status code" in stdout.
Does anyone know of a way to get the "sftp status codes" sent to stdout, like ftp servers do?
I have tried Verbose and Debug options.
--
And, did Galoka think the Ulus were too ugly to save?
-Centauri| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | sftp status error/status code, alan . cline |
|---|---|
| Next by Date: | SSH2 Specifications?, Smith, Eli |
| Previous by Thread: | sftp status error/status code, alan . cline |
| Next by Thread: | Re: sftp status error/status code, Dan Nelson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |