Ubuntu Server/Hamachi: Solved connection hangs on ssh

PHOTO EMBED

Tue Dec 17 2024 22:24:42 GMT+0000 (Coordinated Universal Time)

Saved by @marcopinero #bash

sudo /sbin/ifconfig ham0 mtu 1200

#or

sudo ip link set mtu 1200 ham0

#persistence:

# create a file (example: hamachi) at /etc/network/if-up.d/hamachi
# with this contents:

#!/bin/sh

if [ "$IFACE" = "ham0" ]; then
    ifconfig ham0 mtu 1200
fi
content_copyCOPY

Use this command to stop ssh for hanging when, for example, you want to do cat /var/log/syslog or other commands after some seconds.