proper rssh setup for SFTP access

Shot - Piotr Szotkowski shot at hot.pl
Sat Nov 12 14:29:51 UTC 2005


Hello.

I'm trying to allow an user ('malina') to access her account through
SFTP. I created the account, installed rssh and changed the shell to
/usr/bin/rssh. I also uncommented the 'allowscp' and 'allowsftp' lines
in /etc/rssh.conf. This *seems* to work:

shot at desaxe:~$ ssh malina at desaxe
malina at desaxe's password:
[...]
This account is restricted by rssh.
Allowed commands: scp sftp
If you believe this is in error, please contact your system administrator.
Connection to desaxe closed.

Yet, SFTP doesn't work:

shot at desaxe:~$ sftp malina at desaxe
Connecting to desaxe...
malina at desaxe's password:
Connection closed

While if the shell is set to /bin/bash, SFTP works properly:

shot at desaxe:~$ sftp malina at desaxe
Connecting to desaxe...
malina at desaxe's password:
sftp>

The same happens when malina tries to access the machine from outside -
/bin/bash makes her WinSCP work, /usr/bin/rssh stops it from connecting.

Why is rssh not letting SFTP in? Should I change some other
configuration option as well? I had it working a couple of months
ago on a Debian system, but don't remember what I fixed then. :o|

Cheers,
-- Shot
-- 
   Hmmm... its Sunday afternoon: I could do my work, or I could do a Fourier
   analysis of my computer's fan noise.             -- Amit Muthu, ucam.chat
====================== http://shot.pl/hovercraft/ === http://shot.pl/1/125/ ===
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051112/669d614e/attachment.sig>


More information about the ubuntu-users mailing list