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 - 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 11-17-2004, 01:07 PM   #1
sooner5150
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, 02:12 PM   #2
born4linux
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, 02:31 PM   #3
sooner5150
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, 11:09 AM   #4
RomKnight
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
su
make install
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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