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…

List local disks

GET-CimInstance -query "SELECT * from Win32_DiskDrive" DeviceID Caption Partitions Size Model -------- -------...

Create ISO using Powershell

Usage New-IsoFile -NewIsoFilePath C:\tmp\Hyper-V.iso-sources -ImageName Hyper-V -SourceFilePath 'C:\tmp\Hyper-V'...