1

I recently set up a new Synology NAS and (unsuccessfully) tried to replicate my public key SSH access on the new system. I made sure that:

  • my local SSH config uses the same private key to login on both Synology systems
  • both Synology systems have the same (corresponding) public key in .ssh/authorized_keys
  • /etc/ssh/sshd_config is synchronized on both Synology systems (i.e. allows PubKeyAuthentication) and the service was restarted to make sure the correct settings are used
  • permissions are set properly (700 and 600) for .ssh/ and authorized_keys on both Synology systems

On the old Synology, ssh -vvv yields

debug1: Offering public key: /Users/xxx/.ssh/synology_key RSA SHA256:xxxx explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /Users/xxx/.ssh/synology_key RSA SHA256:xxxx explicit

but on the new one, the same key is rejected

debug1: Offering public key: /Users/xxx/.ssh/synology_key RSA SHA256:xxxx explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
xxx@192.168.78.93: Permission denied (publickey,password).

SSH login using my password works on both systems. What else could I check to debug? Thanks!

1 Answer 1

1

Problem solved: My user's home dir on the new Synology system had incorrect permissions (s. https://blog.aaronlenoir.com/2018/05/06/ssh-into-synology-nas-with-ssh-key/).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.