LinHES Forums http://forums.linhes.org/ |
|
anyone get sftp to work on R6? http://forums.linhes.org/viewtopic.php?f=21&t=20465 |
Page 1 of 1 |
Author: | graysky [ Mon Nov 02, 2009 2:13 pm ] |
Post subject: | anyone get sftp to work on R6? |
How does one enable sftp under R6? When I attempt a connection, after authentinication, I get: Code: 5:13:59 Error: Fatal: unable to initialise SFTP on server: could not connect
15:13:59 Error: Could not connect to server |
Author: | Martian [ Mon Nov 02, 2009 3:40 pm ] |
Post subject: | |
I can confirm that sftp is not working in R6. Here is the relevant bits from auth.log: Code: Nov 2 16:32:23 mythtv sshd[19954]: subsystem request for sftp
Nov 2 16:32:23 mythtv sshd[19954]: error: subsystem: cannot stat /usr/lib/openssh/sftp-server: No such file or directory Nov 2 16:32:23 mythtv sshd[19954]: subsystem request for sftp failed, subsystem not found Appears to indicate that sftp support simply isn't included out of the box. Unfortunately I'm fairly Arch illiterate so I don't know how to figure out if something is available via Pacman. EDIT: I did a pacman -Ss for sftp and also for ssh but didn't find anything that looked like it would add sftp functionality. I'm good with ssh fallback but sftp would be really nice to have. Martian |
Author: | graysky [ Mon Nov 02, 2009 4:24 pm ] |
Post subject: | |
Flyspray task: http://linhes.org/flyspray/index.php?do ... ask_id=566 |
Author: | alien [ Tue Nov 03, 2009 3:12 am ] |
Post subject: | |
See http://wiki.archlinux.org/index.php/SFTP for instructions. Basically, add the following to /etc/ssh/sshd_config Code: Subsystem sftp /usr/lib/ssh/sftp-server
and restart sshd. I agree it would be good to have this out-of-the-box. |
Author: | Martian [ Tue Nov 03, 2009 11:50 am ] |
Post subject: | |
alien wrote: See http://wiki.archlinux.org/index.php/SFTP for instructions. Basically, add the following to /etc/ssh/sshd_config Code: Subsystem sftp /usr/lib/ssh/sftp-server and restart sshd. I agree it would be good to have this out-of-the-box. Actually DO NOT do this. Unfortunetly it will prevent sshd from being able to start (good thing I had x11vnc set up). Instead you need to open /etc/ssh/sshd_config and edit this line (towards the end): Code: Subsystem sftp /usr/lib/openssh/sftp-server to the following: Code: Subsystem sftp /usr/lib/ssh/sftp-server (ie. remove "open") Then you can restart sshd as follows: Code: sudo sv restart sshd
EDIT: I have added a comment to the flyspray ticket. |
Author: | graysky [ Tue Nov 03, 2009 2:15 pm ] |
Post subject: | |
Thanks! |
Author: | alien [ Wed Nov 04, 2009 2:12 am ] |
Post subject: | |
Good catch. I had done this so long ago that I forgot that I had edited the line and not simply added it. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |