LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-16-2007, 07:59 AM   #1
Hammad101
Member
 
Registered: Dec 2005
Posts: 72

Rep: Reputation: 15
Restrict SSH to Group & User


Hi,

I got this ded. server running Debian.

I want to know two things.

1 - How can i disallow certain users from ssh

2 - How can i disallow & Allow a user group from SSH.

thanks in advance

Hammad
 
Old 10-16-2007, 08:08 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It is a simple matter of opening up your sshd_config file and adding in:

Code:
DenyUsers user1 user2
or

Code:
DenyGroups group1 group2
 
Old 10-16-2007, 08:12 AM   #3
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
Check out this: SSHD_CONFIG MAN Page
Look for: AllowGroups and AllowUsers

HTH,

Centinul
 
  


Reply


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
user & group quota !! hitesh_linux Linux - General 1 11-14-2004 06:16 AM
restrict ssh logins by ip by user account Beans0063 Linux - Security 4 10-04-2004 01:29 PM
How to restrict the ssh operation for one user fidelis Linux - Security 2 09-13-2004 02:37 AM
new user and group ssh Longinus Linux - Newbie 3 07-11-2004 02:21 AM
RH 9.0 user & group help...... hct224 Linux - Newbie 3 06-22-2003 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:24 PM.

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