Netrunner Home

SSH after installation


#1

Good Day / Night to All:

I recently installed Netrunner 17.06 Daedalus. I am not new to Linux or Debian, but this is the first time I have encountered an issue with SSH after installation.

When I tried to connect I was being refused, I first I thought I must of not checked for default firewall ports, but after a quick ss -l the ports were showing enabled.

I then checked my auth.log and found the following error messages:

error: Could not load host key: /etc/ssh/ssh_host_rsa_key
error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
fatal: No supported key exchange algorithms [preauth]

This lead me down the path to a solution of generating the host keys, which did resolve my issue, but is this really expected behavior, I thought the host_key(s) for OpenSSH was always generated by default within distro installations?

Commands to generate the host_keys manually:

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key