|
|
Allow only certain users to log in via ssh
Is it possible to allow a user to only open a tunnel, i.e., I want the user to not be able to use the shell?
Allow only certain users to log in via ssh
To prevent a user from having shell access, you need to set their login shell to something like /bin/nologin. Open up NetInfo.app and go to the user you want. Change their shell setting from /bin/bash or /bin/tcsh or whatever to /bin/nologin. You can probably also use the chsh command line utility like this:
Allow only certain users to log in via ssh
It seems that users can logon locally, and in fact use the Terminal! The shell defaults to bash.
However, users cannot logon interactively via the console (i.e. using >console at the logon screen) nor via ssh. -n
Allow certain users only to tunnel
Add something like this before their key in ~/.ssh/authorized_keys2 to allow them a tunnel to this webserver. Beware that there are no spaces. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|