Pitkästä aikaa yritän ssh palvelinta pystyyn Rasberrylle missä on Ubuntu Mate. Olen asentanut ja käynnistänyt palvelimen mutta yhteys ei onnistu. Tulee vain ilmoitus:
raspi@raspi-desktop:~$ sudo ssh localhost
[sudo] password for raspi:
Connection reset by 127.0.0.1 port 22
Sitten kun katson palvelimen statusta niin näkyy seuraavaa:
ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-09-19 17:48:13 EEST; 19min ago
Process: 1818 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 1813 ExecReload=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Process: 995 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Main PID: 1021 (sshd)
Tasks: 1 (limit: 2152)
CGroup: /system.slice/ssh.service
└─1021 /usr/sbin/sshd -D
syys 19 17:48:25 raspi-desktop sshd[1021]: Server listening on 0.0.0.0 port 22.
syys 19 17:48:25 raspi-desktop sshd[1021]: Server listening on :: port 22.
syys 19 18:06:33 raspi-desktop sshd[2285]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
syys 19 18:06:33 raspi-desktop sshd[2285]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
syys 19 18:06:33 raspi-desktop sshd[2285]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
syys 19 18:06:33 raspi-desktop sshd[2285]: fatal: No supported key exchange algorithms [preauth]
syys 19 18:06:58 raspi-desktop sshd[2289]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
syys 19 18:06:58 raspi-desktop sshd[2289]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
syys 19 18:06:58 raspi-desktop sshd[2289]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
syys 19 18:06:58 raspi-desktop sshd[2289]: fatal: No supported key exchange algorithms [preauth]
Missähän mahtaa vika olla?