Ssh – MTU on server accidentally set to 0, can’t ssh into it

mtuscpssh

My server had some problem with the ssh and I couldn't upload files of size > 10 KB, as scp would hang during the copy. I found a solution for this problem here, and I was changing the MTU, when I accidentally did sudo ip link set eth0 mtu 0.

No one can ssh into the server now. What should I do?

Best Answer

Connect to the console and change the MTU back. If you've not got console access, then reboot the server.