SSH server on 18.04 Beta 1 Pi


#1

Ran the 18.04 beta on Pi3B+ over the weekend and had only one issue.

Had issues with connecting to system via ssh from various clients.

Installed ssh server via the Software Boutique after booting and failure then removed via Software Boutique.

Installed ssh server via raspi-config and had same failure.

Finally ran sudo apt purge openssh-server and sudo apt install openssh-server and was able to connect from all clients that it was failing from before.

Was able to confirm that these clients could ssh into an x86-based 18.04 MATE system.

This is obviously a beta and this is an FYI


#2

Yeah, there is a bug in how SSH is enabled via raspi-config or touching /boot/firmware/ssh. On my list to fix.


#3

Ran into the same problem. Of course, as a simple user I was very happy to spend hours looking for solutions of this SSH server bug :slight_smile: It was my fault not reading instructions carefully ("Simply install it to to enable SSH. sudo apt install openssh-server") and I chose the usual way - installed ssh server via raspi-config.

Later I noticed that the key files were zero length. The problem was fixed by generating new key pairs:

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