LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-22-2004, 01:52 PM   #1
evilchild
Member
 
Registered: Sep 2003
Location: 127.0.0.1
Distribution: *bsd, solaris, gentoo
Posts: 86

Rep: Reputation: 15
blocking ssh for only 1 user


I have a server where users are allowed to login, but on this server i have one user which i want to only be able to login from 1 cetain host. How can I go about doing this? Is this some how possible using hosts.deny or hosts.allow ? and how can I also do this with telnet?
 
Old 08-22-2004, 06:00 PM   #2
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
Yes, in /etc/hosts.allow

Code:
sshd: TheIP
in /etc/hosts.deny

Code:
ALL : ALL
 
Old 08-22-2004, 06:48 PM   #3
evilchild
Member
 
Registered: Sep 2003
Location: 127.0.0.1
Distribution: *bsd, solaris, gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
but that would disallow all the other users connecting to this server, I want every one to be able to login from the outside except one user, this user needs to be able to login only from one of my internal address (10.0.0.150)

Would the following work?
hosts.deny
Code:
sshd: evilchild@ALL EXCEPT evilchild@10.0.0.105
 
  


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
Shorewall blocking SSH on mandriva 2006.. di11rod Linux - Security 1 11-24-2005 04:06 AM
per user email blocking kubicon Linux - Networking 1 08-15-2005 05:42 PM
blocking user? westverg Linux - General 6 05-15-2005 10:10 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 - Security

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