proper rssh setup for SFTP access
Tim Frost
timfrost at xtra.co.nz
Tue Nov 15 05:27:27 UTC 2005
Is /usr/bin/rssh listed in /etc/shells? The SSH daemon will check that
the user's shell is valid (i.e., is listed in /etc/shells), as one of
the checks it does when a SCP/SFTP session is requested.
Tim
On Sat, 2005-11-12 at 15:29 +0100, Shot - Piotr Szotkowski wrote:
> 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
More information about the ubuntu-users
mailing list