LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 08-25-2008, 02:54 AM   #1
Torquemalex
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
sshd host allow/deny doesn't work


Hi everybody

I have 2 servers with the same configuration:

hosts.allow
sshd: [my pc's IP]/255.255.255.255

hosts.deny
sshd : ALL

on one of them (suse 10.3) everything works fine, and noone can gets in but my pc. On the other one (suse 10.1) anyone can gets in! After every configuration change Ive always restarted the deamon...

Can anyone helps me please?

Grazie!
 
Old 08-25-2008, 03:30 AM   #2
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Can you make sure the malfunctioning binary was compiled with support for TCP wrappers?

Example:
Code:
ldd /usr/sbin/sshd | grep libwrap
(Adjust the name and path of the binary if necessary.)
 
Old 08-25-2008, 03:23 PM   #3
Torquemalex
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by win32sux View Post
Can you make sure the malfunctioning binary was compiled with support for TCP wrappers?

Example:
Code:
ldd /usr/sbin/sshd | grep libwrap
(Adjust the name and path of the binary if necessary.)
Hi and thanks for your reply

I tried and they both do...

I've found the problem: hosts.allow/deny needs an empty line between each written line. By luck I've checked in the log file and I've found:
: warning: /etc/hosts.allow, line 63: missing newline or line too long
so I tried to separate the entries and now it works!
 
  


Reply

Tags
sshd, suse


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo sshd deny all users except for one? mattengland Linux - Security 28 11-04-2007 02:53 PM
host.deny and host.allow not found satimis Linux - Security 5 08-24-2007 06:38 AM
sshd and hosts.deny reggie Linux - Security 2 03-07-2007 09:00 PM
Slackware 10.0 and hosts.deny in reguards SSHD Smillie Slackware 10 03-24-2005 10:53 AM
How to setup a host.deny and host.allow for SSH? explorer1979 Linux - Security 2 01-31-2005 05:28 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration