ssh can't connect after server ip changed
- by Kery
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!!!