Written by James McDonald

September 29, 2023


I had an issue where my SSH terminal was freezing in a Ubuntu 22.04.3 LTS.

I would do a command with small output and it would return but when using larger commands or sudo it would hang.

I have a funky networking (VXLAN over Zerotier) setup for this VM so I thought that this might be the cause of the terminal freeze.

But in the end I think it was a hostname didn’t match what was in /etc/hosts


# get the hostname
# fix 
sudo vim /etc/hosts

Contents of /etc/hosts

# contents of /etc/hosts localhost
# remove incorrect hostname and replace it with the correct one
# tmp-srv-01 TGN-SRV-VM01

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Meraki Open Source Licenses

Until today I assumed that Meraki was built in-house with only closed source software. But having a look at the...


If you have Veeam backup failing with the Updating BCD failed with Cannot update SafeBoot flag and SentinelOne is...