LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2009, 08:56 PM   #1
weboweb
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Changing server's IP address kills sshd?


Last night I had to change my network range from 192.168.0.xxx to 192.168.1.xxx. This has stopped sshd from working on my CentOS server. It's definitely something to do with the new IP range, because if I switch back to the old range, sshd works and I can SSH in.

Before you ask, I updated iptables for the new range, and running sshd in debug mode shows that it DOES receive my connection attempts, but it hangs after a moment (i.e. before I am even asked to accept the host key) This server also runs Apache which still works fine on the new IP range. Samba and Subversion both seem to be dead.

Any ideas folks? I have a feeling I need to regenerate some host keys or something to that effect.
 
Old 04-07-2009, 09:50 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
Have you checked your SSH configuration file to ensure its listening on the right interface. Also do you have entries in your TCP Wrappers, so look at /etc/hosts.allow and /etc/hosts.deny.
 
Old 04-07-2009, 11:37 PM   #3
weboweb
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by FragInHell View Post
Also do you have entries in your TCP Wrappers, so look at /etc/hosts.allow and /etc/hosts.deny.
That was it - thank you. SSH is now working I also found the subversion conf file and fixed that up.
 
  


Reply


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
IP Address Always keep Changing? your_shadow03 Linux - Newbie 4 02-19-2009 12:28 PM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
hiding my server's IP address linuxhippy Slackware 8 07-06-2006 12:46 AM
changing IP address ethanchic *BSD 7 04-25-2003 11:48 PM
Changing the ip address saravanan1979 Linux - Software 1 01-28-2002 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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