Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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