Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .