VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
cannot stat /usr/libexec/sftp-server (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: cannot stat /usr/libexec/sftp-server
#2440
cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
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
jemoore2 (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
--
Jack Moore
Austin, TX, Ya'll
 
The administrator has disabled public write access.  
#2441
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
Oh, so my question is - how do I get around this? What's the fix?

Thanks!

Jack
jemoore2 (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
--
Jack Moore
Austin, TX, Ya'll
 
The administrator has disabled public write access.  
#2442
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
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
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2443
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
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
jemoore2 (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
--
Jack Moore
Austin, TX, Ya'll
 
The administrator has disabled public write access.  
#2444
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
How did you restart sshd?

Brian
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2445
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
service sshd restart

How do you do it?

-

# service sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
jemoore2 (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
--
Jack Moore
Austin, TX, Ya'll
 
The administrator has disabled public write access.  
#2446
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
Gee, when I log into a new session, guess what works! Thanks Brian!

Jack
jemoore2 (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
--
Jack Moore
Austin, TX, Ya'll
 
The administrator has disabled public write access.  
#2447
Re:cannot stat /usr/libexec/sftp-server 7 Years, 7 Months ago  
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
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top