When I attempt to invoke sftp from my absolute telnet 8.14 to my linux system, it logs the following message:
Apr 20 12:13:36 sts246 sshd[583]: subsystem request for sftp
Apr 20 12:13:36 sts246 sshd[583]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory
Apr 20 12:13:36 sts246 sshd[583]: subsystem request for sftp failed, subsystem not found
Here is what I have loaded...
# rpm -qa | grep sftp
sftp-0.9.9-6
(0) root @ : /var/log
# rpm -qa | grep ssh
openssh-clients-5.0p1-afs.2
openssh-server-5.0p1-afs.2
openssh-5.0p1-afs.2
openssh-askpass-5.0p1-afs.2
Oh, so my question is - how do I get around this? What's the fix?
Thanks!
Jack
First, you need to find where the sftp-server binary is. In my installation it is here:
/usr/libexec/openssh/sftp-server
From your log info, you are looking here:
/usr/libexec/sftp-server
If you are simply looking in the wrong place, you can update your sshd_config to point to the correct location. If the binary is actually missing, you can try re-installing the RPM. The sftp-server binary should be in the openssh-server rpm.
Let me know what you find.
Brian
Found it at /usr/libexec/openssh/sftp-server and updated sshd_config. Then restarted sshd. Still can't start it and the message in the log file is still referring to the old location...
What's the next step?
Thanks Brian!
Jack
How did you restart sshd?
Brian
service sshd restart
How do you do it?
-
# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
Gee, when I log into a new session, guess what works! Thanks Brian!
Jack
service sshd restart
That's fine. My next post was going to remind you to be sure to logout and back in again, but you apparently figured that out already!
I'm glad I could help!
Brian