Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-20-2005, 08:47 PM   #1
LQ Newbie
Registered: Jun 2005
Distribution: RedHat 9
Posts: 17

Rep: Reputation: 0
restrict/allow ssh users


I'm running RedHat 9. I need to allow certain users access to ssh, and restrict everyone else. I don't want to restrict IP addresses with IPTABLES or public/private keys. It seems there should be a simple way to do this.
Old 06-20-2005, 09:04 PM   #2
Registered: Jun 2005
Posts: 96

Rep: Reputation: 15
you can edit /etc/ssh/sshd_config and edit the AllowUsers line

hope this helps
Old 06-20-2005, 09:37 PM   #3
LQ Newbie
Registered: Jun 2005
Distribution: RedHat 9
Posts: 17

Original Poster
Rep: Reputation: 0

I also found some helpful info on /etc/pam.d/sshd:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
restrict unix users to ~ novaprime Linux - Software 20 01-26-2005 12:41 AM
Restrict users logging in by SSH tolindsey Linux - Security 4 08-12-2004 05:17 PM
restrict space for some users in directories CleonII Linux - Security 5 02-25-2004 11:08 AM
Restrict Directories to users with SSH aeruzcar Linux - General 5 09-11-2003 04:28 PM
How to restrict email from users... Supp0rtLinux Linux - Software 1 01-08-2003 04:37 AM

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration