Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 11-17-2004, 02:07 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Restricting SSH access by IP

Does anyone know how to set this up? I have RHEL 3.0 ES
Old 11-17-2004, 03:12 PM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
man sshd_config search "AllowUsers" or try tcpwrappers.
Old 11-17-2004, 03:31 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
but what about restricting by ip address? without having to use a firewall....
Old 11-18-2004, 12:09 PM   #4
LQ Newbie
Registered: Jul 2004
Posts: 23

Rep: Reputation: 15
if your sshd was compiled with lbwrap you can use /etc/hosts.allow or /etc/hosts.deny

then every time someone connects the tcpwrapper checks for this files and reads them to see if the ip / hostname have access.

man hosts.allow
man hosts.deny

if it doesn't work remove previous instalation, get the source code and read the INSTALL file.

anyway, it should go something like:

./configure --with-tcp-wrappers
make install


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
Restricting access Menestrel Linux - Newbie 1 06-07-2005 09:17 AM
Restricting SSH logins. bullium Linux - Security 3 05-10-2005 02:15 AM
restricting ssh users from certain programs/files nixel Linux - Security 5 05-13-2004 01:54 AM
Restricting SSH Access ErocM Linux - Security 4 02-20-2004 11:52 AM
restricting ssh macie Linux - Networking 1 12-10-2003 12:34 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:29 AM.

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