Synology usage series 5 – Automatically SSH login to DS207+ without password using putty

I’m not unix guru, but I enjoy CLI rather than go though the admin console to perform some changes to the system. (Rememer the life using DOS 3.0!!)

I always need to SSH to the DiskStation and it would be too trouble typing the lenghty and weird password for every login. This article contains all neccessary steps to setup your SSH server and putty for automatically login without prompt for password (except you setup passphrase to protect your private key). We will using secret/public key pairs to perform the authentication.

I. Setup SSH

All recent firmware already come with SSH server. Just enable it using the admin console.

In order to allow ONLY key authorization and disable password login, edit the SSH server configuration as below:

# vi /etc/ssh/sshd_config

Protocol 2
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys
PasswordAuthentication no

Restart SSH Server

#/usr/syno/etc/rc.d/ restart

One thought

  1. Pingback: Synology DS207+ usage series 6 – Securing Squid and Socks5 connection using Bitvise Tunnelier « BLoG of R@y

Leave a Reply

Your email address will not be published. Required fields are marked *