I’m having an unresolved issue when attempting to SSH into my Raspberry Pi, model 3B+ SBC from my FerenOS Linux Main PC. The SBC is running RaspbianOS based on Debian 10 Buster and the Main PC is running FerenOS Linux based on Debian & Mint. Both the SBC and FerenOS Main PC are running OpenSSH and both are Active (Running) and Enabled.
On the Main PC, I went into ~/.ssh and removed the known_hosts file so I would be prompted for the password for the user (datapioneer) on the SBC which is identical to the user on the Main PC. The IP address of the SBC is 192.168.1.90 and is fixed. When I run the command:
ssh 192.168.1.90
I get the warning message:
The authenticity of host ‘192.168.1.90 (192.168.1.90)’ can’t be established.
ECDSA key fingerprint is SHA256:LmtH5FcZYg9b+7R7GBtlAcnpmLW9PSQ884wz/cp13zk.
Are you sure you want to continue connecting (yes/no)?
I respond with “yes” (without quotes) and hit Enter and instead of being prompted for the password for datapioneer, I receive the message:
Warning: Permanently added ‘192.168.1.90’ (ECDSA) to the list of known hosts.
datapioneer@192.168.1.90: Permission denied (publickey,password).
instead. I used PuTTY to access the /etc/ssh/sshd_config file on the SBC and ensure that “PasswordAuthentication yes” is uncommented. After restarting the SSH server on the SBC I return to the Host Main PC, remove the unknown_hosts file again, then repeat the process. The result is the same whereas I am not prompted for datapioneer’s password.
Can anyone assist me with this issue? This issue is 100% reproducible. My intention is to log into the remote SBC the first time using a password, then create a ed25519 SSH keypair and upload the id_ed25519.pub file to the SBC and disable PasswordAuthentication to force the use of the SSH keys.
Note: When I create two identical VMs of Ubuntu 20.04 LTS, one as a workstation and one as a Server and ssh into the Server from the Workstation the first time, I do not encounter this problem and able to remove “PasswordAuthentication yes”, copy up the id_ed25519.pub key from the workstation to the Server using ssh-copy-id command, then restart the OpenSSH-Server to force the use of the ed25519 key pairs.