LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2006, 08:58 AM   #1
jitheshmurali
LQ Newbie
 
Registered: Mar 2006
Posts: 16

Rep: Reputation: 0
blocking ssh for a user


Dear friends,
A user(eg:joy) must be able to login to the system locally.But when tried to access that system using ssh for this user(joy) ,the access should be denied. I am using red hat linux 4.
Please give a sulution for this.
thank you.
 
Old 05-03-2006, 09:07 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Take a look at the DenyUsers directive in /etc/ssh/sshd_config (if that is where red hat stores this file). man sshd_config for details.

Hope this helps.
 
Old 05-04-2006, 11:44 PM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hello jitheshmurali,

You can use the DenyUsers directive in /etc/ssh/sshd_config to deny a particular user.

ie.. DenyUsers 'name1' 'name2' .....

If you use the 'AllowUsers' directive. then only the users you add here are allowed to login via ssh.

Thanks,,,
 
  


Reply



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
Router blocking SSH, HTTP, FTP? Zmyrgel Linux - Networking 4 04-12-2006 12:19 AM
Shorewall blocking SSH on mandriva 2006.. di11rod Linux - Security 1 11-24-2005 04:06 AM
blocking ssh for only 1 user evilchild Linux - Security 2 08-22-2004 06:48 PM
FreeBSD starts suddenly blocking ssh Mikessu *BSD 1 06-05-2004 01:24 PM
SSH is blocking my connections tarballedtux Linux - Security 8 11-01-2002 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:00 AM.

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