View previous topic :: View next topic |
Author |
Message |
ahuacatlan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Dec 2008 Posts: 74
|
Posted: Sat Nov 14, 2009 8:42 pm Post subject: sftp: subsystem request failed on channel 0 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
causality Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 03 Jun 2006 Posts: 239
|
Posted: Thu Dec 10, 2009 7:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|