DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-01-03 23:37:47

rcdncn
New member
Registered: 2011-01-03
Posts: 1

sFTP chroot jail errors using openSSH from Fonz Fun Plug

I've been looking to use my DNS-323 as a quick client show and tell dropbox, and have been using sFTP with good success.
Then I realized that sFTP access granted the user access to the whole contents of the drive, including other client folders. Not so hot.

So, based on some comprehensive study, including this forum, and here, and at least one cry of success, I've given it a shot.

The problem I'm having is that:

If I try to

Code:

Match User sftptest
     ChrootDirectory /home/sftptest
     ForceCommand internal-sftp
#    ForceCommand /ffp/libexec/sftp-server    #tried both of these
     AllowTcpForwarding no

I can still ssh into the box using other accounts, but user sftptest cannot.
Trying to sftp as sftptest, I get the following error

Code:

subsystem request failed on channel 0
Connection closed

If instead I use groups:

Code:

Match Group sftponly

and then restart /ffp/start/sshd.sh, the whole ssh system fails, and I have to Telnet in and comment out the Match lines to reactivate the openSSH system.

I'm using the subsystem call that was included in the ffp/etc/ssh/sshd_config file.

Code:

Subsystem       sftp    /ffp/libexec/sftp-server

Any thoughts?
Thanks,
Rob.

Offline

 

#2 2011-04-22 08:16:49

krimb1
Member
Registered: 2008-01-05
Posts: 65

Re: sFTP chroot jail errors using openSSH from Fonz Fun Plug

I too would be interested to know if you got this working Rob. smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB