hyp Posted October 31, 2021 Posted October 31, 2021 Hello, i want to use ssh public key over wireguard vpn to do an automatic backup of my nextcloud instance running on an debian 11 x86 pc. I recently updated my neo 3 to bullseye (device is client). Copied my public key with ssh-copy-id command but get propted an password authentication when try to login. Tried the buster image, but same problem sshd config is the delivered one with the image. Is there anything special with armbian? With my pi 4 and raspberry os (1. backup device) everything is working.
Solution Werner Posted October 31, 2021 Solution Posted October 31, 2021 check your sshd_config if PubkeyAuthentication is enabled.
hyp Posted October 31, 2021 Author Posted October 31, 2021 PubkeyAuthentication yes and AuthorizedKeysFile .ssh/authorized_keys are both enabled. Edit: Log: Oct 31 23:21:54 nanopineo3 sshd[14043]: debug2: userauth_pubkey: authenticated 0 pkalg rsa-sha2-512 [preauth] Oct 31 23:21:54 nanopineo3 sshd[14043]: debug3: user_specific_delay: user specific delay 0.000ms [preauth] Oct 31 23:21:54 nanopineo3 sshd[14043]: debug3: ensure_minimum_time_since: elapsed 5.875ms, delaying 4.758ms (requested 5.316ms) [preauth] Oct 31 23:21:54 nanopineo3 sshd[14043]: debug3: userauth_finish: failure partial=0 next methods="publickey,password" [preauth] Oct 31 23:21:54 nanopineo3 sshd[14043]: debug3: send packet: type 51 [preauth] Finaly got it. Problem was the RSA key. Generated a new one with ssh-keygen -o -a 256 -t ed25519 -C "$(hostname)-$(date +'%d-%m-%Y')" and copied it.
Recommended Posts