LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2006, 01:22 AM   #1
jitheshmurali
LQ Newbie
 
Registered: Mar 2006
Posts: 16

Rep: Reputation: 0
blocking ssh for a user


hello,
how to block the ssh facility for a particular user from the other system.
thank you
 
Old 05-04-2006, 07:32 AM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Use the DenyUsers option in /etc/ssh/sshd_config. See the sshd_config man page for details. Note that a user specified as "joe@example.com" will not prevent joe at example.com from logging in, but rather, it will prevent anyone from example.com logging in as the local user joe. At least, that is my understanding, I could be wrong.
 
Old 05-04-2006, 08:38 AM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Like everything Unix there is numerous ways to accomplish the same thing. What came to mind first for me is using the hosts.deny file. I set my hosts.deny to all:all. this blocks all users that are not explicitly allowed via the hosts.allow file. Yeah, you need both files if you do it that way. I'm guessing your running IPtables. Or you could just deny that one user in your hosts.deny file.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
blocking ssh for a user jitheshmurali Linux - Networking 2 05-04-2006 11:44 PM
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
SSH is blocking my connections tarballedtux Linux - Security 8 11-01-2002 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:52 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