SSH connection closed by <HOST> error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cubic |
Fix Released
|
Critical
|
Cubic PPA |
Bug Description
When trying to ssh to a remote computer whose OS was installed using a Cubic generated ISO, the remote computer does not allow SSH connections.
The user receives the error:
SSH connection closed by TEST error
(Where TEST is the remote computer).
Additionally, running `systemctl status sshd` on the remote computer gives the following...
$ systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2019-04-19 14:33:48 EDT; 13min ago
Docs: man:sshd(8)
Process: 840 ExecStartPre=
Main PID: 857 (sshd)
Tasks: 1 (limit: 4915)
Memory: 4.2M
CGroup: /system.
└─857 /usr/sbin/sshd -D
Apr 19 14:33:48 TEST systemd[1]: Starting OpenBSD Secure Shell server...
Apr 19 14:33:48 TEST systemd[1]: Started OpenBSD Secure Shell server.
Apr 19 14:34:13 TEST sshd[2243]: error: Could not load host key: /etc/ssh/
Apr 19 14:34:13 TEST sshd[2243]: error: Could not load host key: /etc/ssh/
Apr 19 14:34:13 TEST sshd[2243]: error: Could not load host key: /etc/ssh/
Apr 19 14:34:13 TEST sshd[2243]: fatal: No supported key exchange algorithms [preauth]
Apr 19 14:38:02 TEST sshd[3939]: error: Could not load host key: /etc/ssh/
Apr 19 14:38:02 TEST sshd[3939]: error: Could not load host key: /etc/ssh/
Apr 19 14:38:02 TEST sshd[3939]: error: Could not load host key: /etc/ssh/
Apr 19 14:38:02 TEST sshd[3939]: fatal: No supported key exchange algorithms [preauth]
The solution is to run
$ sudo ssh-keygen -A
on the computer where the OS was installed using a Cubic generate ISO.