[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [suse-security] sftp with no ssh login



> -----Original Message-----
> From: Markus Gaugusch [mailto:markus@xxxxxxxxxxx]
> Sent: Wednesday, January 28, 2004 5:30 AM
> To: Manuel Balderrabano
> Cc: suse-security@xxxxxxxx
> Subject: Re: [suse-security] sftp with no ssh login
>
>
> > How can I allow users to log in using a sftp connection, but
> NOT allowing
> > them to open a shell using ssh?
> Look for scponly or rssh at freshmeat.net
>


Another thing to try is put "logout" at the beginning of ~/.bash_login.
Upon ssh login it will run the .bash_login and log them out.  On sftp, it
won't run ~/.bash_login so they can still sftp

Ben



-- 
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-help@xxxxxxxx
Security-related bug reports go to security@xxxxxxx, not here