sshd - connection refused

I recently cloned a hard drive. On the new drive, I changed the IP addresses.
I have eth0 -> eth0:11

I CAN ssh into eth0 BUT CANNOT ssh into eth0:0 - eth0:11

I get 'ssh: connect to host <IP ADDR> port 22: Connection refused'

I turned off the firewall entirely and still couldn't get in so, it's not a firewall issue.

I explicitly put listenaddress 0.0.0.0 in the ssh_config file and that didn't help either.

Does anyone have any suggestions?
lvnvAsked:
Who is Participating?
 
lvnvAuthor Commented:
I reinstalled sshd and it works now... what a pain... I have a feeling it had to do with the hostkeys.
0
 
martin_2110Commented:
any errors in the logs. Maybe try adding a hostname for the interface in /etc/hosts
0
 
martin_2110Commented:
you shutdown ip6tables also?
0
 
lvnvAuthor Commented:
I did shut down ip6tables too
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.