OpenSSH 9 unable to connect to old machine

Issue

$ ssh user@192.168.0.1
Unable to negotiate with 192.168.0.1 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

Caused

OpenSSH 8 disable weak ciphers by default

Resolution

Add these line to .ssh/config

HostKeyAlgorithms ssh-rsa
PubkeyAcceptedKeyTypes ssh-rsa

References: