Forum

cannot stat /usr/li...
 
Notifications
Clear all

cannot stat /usr/libexec/sftp-server

0 Posts
2 Users
0 Reactions
1,020 Views
 jem
(@jemoore2)
Eminent Member
Joined: 18 years ago
Posts: 12
Topic starter  

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


   
ReplyQuote
 jem
(@jemoore2)
Eminent Member
Joined: 18 years ago
Posts: 12
Topic starter  

Oh, so my question is - how do I get around this? What's the fix?

Thanks!

Jack


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

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


   
ReplyQuote
 jem
(@jemoore2)
Eminent Member
Joined: 18 years ago
Posts: 12
Topic starter  

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


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

How did you restart sshd?

Brian


   
ReplyQuote
 jem
(@jemoore2)
Eminent Member
Joined: 18 years ago
Posts: 12
Topic starter  

service sshd restart

How do you do it?

-

# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]


   
ReplyQuote
 jem
(@jemoore2)
Eminent Member
Joined: 18 years ago
Posts: 12
Topic starter  

Gee, when I log into a new session, guess what works! Thanks Brian!

Jack


   
ReplyQuote
(@bpence)
Member Admin
Joined: 12 months ago
Posts: 1375
 

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


   
ReplyQuote
Share: