Anyone get passwordless key-based SSH access to work in DSM 7?

Currently reading
Anyone get passwordless key-based SSH access to work in DSM 7?

5
5
NAS
DS920+, DS718+, DS712+
Router
  1. RT2600ac
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Has anyone figured out how to get SSH keys working (passwordless shell access) with DSM 7? It seems to operate differently than DSM 6 in this regard, and my searches haven't turned up anything new specific to DSM 7.
 
5
5
NAS
DS920+, DS718+, DS712+
Router
  1. RT2600ac
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
ssh -vvv gives the following error:
debug1: Remote: Ignored authorized keys: bad ownership or modes for directory /volume1/homes/<username>

However, I've already gotten myself into trouble on another DSM 7 installation by trying to adjust permissions manually using chmod-- apparently, that overrides the Synology ACLs, so I don't want to mess things up again.

Any tips?
 

Rusty

Moderator
NAS Support
3,636
1,049
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
SSH will not work in this manner unless there are strict permissions on the keys file and the folders it lives in

Code:
chmod 0711 ~
chmod 0711 ~/.ssh
chmod 0600 ~/.ssh/authorized_keys
 
5
5
NAS
DS920+, DS718+, DS712+
Router
  1. RT2600ac
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. Android
  2. iOS
Last edited:
Will this interfere with the DSM 7 ACLs?
-- post merged: --

Thanks, that worked! I'm checking the ACLs now... they seem to be OK so far.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top