View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Nov 02, 2009 2:13 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 02, 2009 3:40 pm 
Offline
Joined: Wed Feb 08, 2006 6:13 pm
Posts: 480
Location: IN
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

_________________
ABIT NF-M2 nView | Athlon 64 X2 3800+ | 2GB DDR2 800 | HDHomerun | GeForce 6150 (onboard) | WD 640 GB SATA HD | DVD-RW (sata) | StreamZap IR receiver with Logitech Harmony remote

Vizio 37" LCD HDTV (1080p)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 02, 2009 4:24 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Flyspray task: http://linhes.org/flyspray/index.php?do ... ask_id=566

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 03, 2009 3:12 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
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.

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 03, 2009 11:50 am 
Offline
Joined: Wed Feb 08, 2006 6:13 pm
Posts: 480
Location: IN
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.

_________________
ABIT NF-M2 nView | Athlon 64 X2 3800+ | 2GB DDR2 800 | HDHomerun | GeForce 6150 (onboard) | WD 640 GB SATA HD | DVD-RW (sata) | StreamZap IR receiver with Logitech Harmony remote

Vizio 37" LCD HDTV (1080p)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 03, 2009 2:15 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 04, 2009 2:12 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Good catch. I had done this so long ago that I forgot that I had edited the line and not simply added it.

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Google [Bot] and 26 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu