IBM

Securing client access via SSH

Hi,

I have a server ( happens to be AIX but I don't consider that too important to the topic ) that clients have access to by:

(a) sftp
(b) an custom server setup using .ssh/authorized_keys

I want to deny those clients general shell access but still permit sftp access and any custom server defined in authorized_keys?

Thoughts? If I set the client's shell to "nologin" or "false" will that prevent all access?

And I still want to run as that user ( mainly to configure and test ) using some form of "su".
maybe this helps :D
http://www.howtoforge.com/chrooted-ssh- ... bian-lenny

_________________
r-a-c.de
Hi,

porter wrote:
I want to deny those clients general shell access but still permit sftp access and any custom server defined in authorized_keys?

Thoughts? If I set the client's shell to "nologin" or "false" will that prevent all access?


How about something like scponly?
http://sublimation.org/scponly/wiki/index.php/Main_Page

You replace the users shell with the scponly binary.
It seems to support sftp as well as scp and a whole host of configurable features and restrictions
http://sublimation.org/scponly/wiki/index.php/Features


Regards,
@ndy
Cool, I will give that one a go....