I want to allow SSH access for user to use services like SCP, GIT or SSH tunneling. However, I don't want them to use the console shell function from bash.

I force to turn on loginShell as /bin/bash for SSH access or else they can't login to SSH. If I use /bin/false as loginShell, they can't login to SSH at all. However, /bin/bash access allow them to use ssh program putty to login to the system. How may I restrict it?

link|improve this question

30% accept rate
please search this site for similar questions, there are many. – Sirex Jul 15 '11 at 11:24
Can you suggest few questions related to it? – Chau Chee Yang Jul 16 '11 at 9:25
feedback

1 Answer

Just make a group for users that aren't admins or sudoers but can ssh. Lots of info about this if you look into Users and Groups in any Linux manual.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.