Prioritized checklist for when configuring public key authentication on SSH server (unix, synology)

Let's say that you want to access to SSH server as below:

[user]@[server_address]

1. Does public key of client is appended to server's '/home/user/.ssh/authorized_keys' file?

- In synology, location of user's home directory could be different to ordinary unix.

2. Check server's ssh daemon setting.

- Make sure to uncomment : PubkeyAuthentication yes

Make sure to uncomment : AuthorizedKeyFiles .ssh/authorized_keys

Make sure to uncomment : ChallengeResponseAuthentication no

2. Ownership(user, group both) of '.ssh' directory and descendants.

- In unix, [user]:[user]

- In synology, [user]:users

3. Permission of '.ssh/authorized_keys' : 0644

4. Permission of '.ssh' directory : 0700


댓글

이 블로그의 인기 게시물

Proof of well-known 'Intersection Of Three Planes' formula.

Linux에서 특정한 디렉토리가 차지하는 용량을 효율적이고, 빠르게 계산하는 법(Fast, efficient way to calculate directory size recursively on linux)

영화 'Call me by your name'의 OST 중 'Visions of Gideons' 번역 및 해석