Ssh authentication with public key (ssh-rsa sha-1 deprecated)

If (on mac osx) you (lately) experience problems to log automatically on your mod (dwarf) device using authorized_keys you can fix this in two different ways.

  1. by adding to your home ~/.ssh/config the following line:
Host 192.168.51.*
    UseKeychain yes
    StrictHostKeyChecking no
    PubkeyAcceptedKeyTypes +ssh-rsa

if there is no ~/.ssh/config:
touch ~/.ssh/config && chmod 0600 ~/.ssh/config

  1. creating a new key with ssh-keygen -t ed25519
    and adding this key as IdentityFile ~/.ssh/id_ed25519 (always in the ~/.ssh/config)
    and also adding the cat ~/.ssh/ to your /root/.ssh/authorized_keys on the mod device.



Should be noted this is only relevant to SSH, the regular web gui continues to work as normal.

And you can alternatively also use this which doesnt need any config tweaks:

ssh -o PubkeyAcceptedAlgorithms=+ssh-rsa root@