LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2009, 12:29 PM   #1
ferdous1986
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
How Do I Configure SSH to Deny Users?


question:

To configure ssh service for the network example.com that-
-User khaled can access to your system via ssh with in the network example.com
-Any user of the network mig233 org canít access to your system via ssh

I need the complete answer of this question.I tried but i failed.
 
Old 03-22-2009, 12:55 PM   #2
juscelino
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by ferdous1986 View Post
question:

To configure ssh service for the network example.com that-
-User khaled can access to your system via ssh with in the network example.com
-Any user of the network mig233 org can’t access to your system via ssh

I need the complete answer of this question.I tried but i failed.

i guess it's simple like

on /etc/hosts.allow

sshd : .example.com

on /etc/hosts.deny

sshd : .mig233.org

(first if your iptables is enabled allow your 22 port on system-config-securitylevel)

Last edited by juscelino; 03-22-2009 at 12:57 PM.
 
Old 03-22-2009, 01:33 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Would this be a homework question by any chance? Looks very much like it to me. However, moved to Linux-Newbie to give the benefit of the doubt.
 
Old 03-22-2009, 02:55 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by ferdous1986
To configure ssh service for the network example.com that-
-User khaled can access to your system via ssh with in the network example.com
-Any user of the network mig233 org canít access to your system via ssh
Read the manpages for sshd_config(5). In particular, see the AllowUsers, DenyUsers, AllowGroups, and DenyGroups directives.

You probably aren't going to learn new concepts if others do your homework for you.
 
  


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
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 07:58 PM
How to add users to ssh (Configure ssh) A.Sai Hareesh Linux - Newbie 2 06-30-2008 08:23 AM
how to configure SSH to allow or deny specify host(ip address). hocheetiong Linux - Newbie 9 01-17-2008 01:40 PM
Deny SSH-users to read filesystem, except their homedirs? Waerner Linux - Newbie 2 02-12-2006 07:44 AM
how to deny all users in vsftp except one? lzyking Linux - Software 7 12-11-2002 10:02 PM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration