mikaowx Posted April 5, 2005 Report Share Posted April 5, 2005 I have two Mdk 10.1 boxes which had been installed months ago with sshd enabled on them. Sshd was working at the beginning on both macines. I could login from any other boxes. Then I set http service up on both. Since those services have to be running to serve clients from the internet I decided to use draksec to make them more secure. Now I cant connect to any of these boxes even if I set security level to low and have iptables emptied. What went wrong? Has anyone had similar experience? Any help would be appreciated, Thanks Quote Link to comment Share on other sites More sharing options...
aioshin Posted April 6, 2005 Report Share Posted April 6, 2005 try to check you logs in the server that you want to connect to, those time that you've tried to established ssh connection. so you may know what was happening during that time.. try to check also the /etc/hosts.allow if there's an entry there that specify sshd to accept to a particular ip only... and also, try to check if sshd service is up :) Quote Link to comment Share on other sites More sharing options...
mikaowx Posted April 6, 2005 Author Report Share Posted April 6, 2005 Here's the only entry I've found in /var/log/auth.log Apr 1 10:12:20 mooo sshd[4438]: Received signal 15; terminating. Apr 1 10:12:21 mooo sshd[4500]: Server listening on 192.168.200.10 port 22. Other logs just wont show any valuable info about what happened. The interesting thing is, I havent changed anything in the configuration files since it has been working. I am therefore suspecting something is wrong with draksec or the way it handles file permissions. I'll try to set the original values of permissions on files back to normal manually. Would someone with a working sshd post me the listing of /etc/sshd and its contents, file and directory permissions? I would also need the orig perm of /etc/sshd directory itself. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Guest carvalhoso Posted April 6, 2005 Report Share Posted April 6, 2005 Are you trying do connect with the root?? If it will be tries to connect with a common user... Quote Link to comment Share on other sites More sharing options...
idud Posted April 7, 2005 Report Share Posted April 7, 2005 Have you try this: # echo "sshd:ALL" >> /etc/hosts.allow Quote Link to comment Share on other sites More sharing options...
mikaowx Posted April 7, 2005 Author Report Share Posted April 7, 2005 Jeez! I havent thought this would solve my problem but it did! Since I dont run ssh from xinetd I figured it has nothing to do with hosts.allow. Now I know it has. Thanks again Quote Link to comment Share on other sites More sharing options...
idud Posted April 8, 2005 Report Share Posted April 8, 2005 Yeah...! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.