I have a server with ubuntu installed. After I change the network configuration and restart server, ssh client can't connect server any more. But in the server I can use ssh client to connect itself and the netstat command shows that sshd is listening port 22. And in my computer (win7) ping command is OK to server's new IP.
The configuration in /etc/network/interfaces is:
auto eth0
iface eth0 inet static
address 10.80.x.x
netmask 255.255.255.0
gateway 10.80.x.1
I'm very confused about this. Hope somebody can give me some idea. Thank you in advance!!!
tcpdump -n port 22
on the server while trying to connect to it also, usessh -vvv
to connect for more debugging info.ssh
daemon is configured (if it is specifically listening on the old IP address rather than all addresses you need to change that configuration and restart sshd when you change IP addresses...)