Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sftp: subsystem request failed on channel 0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ahuacatlan
n00b
n00b


Joined: 29 Dec 2008
Posts: 74

PostPosted: Sat Nov 14, 2009 8:42 pm    Post subject: sftp: subsystem request failed on channel 0 Reply with quote

Hi,
A few weeks ago, my sftp connection abruptly stopped working. I haven't made any system changes. In desktop sftp clients I get worthless errors, so I tried using sftp in the command line:
Code:
~ $ sftp user@domain.org
Connecting to domain.org...
user@domain.org's password:
subsystem request failed on channel 0
Connection closed
~


SSH works fine.
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 239

PostPosted: Thu Dec 10, 2009 7:13 pm    Post subject: Reply with quote

In your /etc/ssh/sshd_config (not ssh_config) file, you probably have a line like this:

Code:
Subsystem sftp /usr/lib/misc/sftp-server


If so, it's the cause of this error message. That's especially true if your sftp user is logging into a chrooted environment, where "/usr/lib" probably does not exist. My own sftp server is configured this way.

However, SSHD has the sftp functionality built-in and does not need to execute an external "helper" program like that. So, if you have a line like the above, it can be fixed by changing it to:

Code:
Subsystem sftp internal-sftp
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum