Jump to content

ssh public key


hyp
Go to solution Solved by Werner,

Recommended Posts

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.

 

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines