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.
Continue reading Synology usage series 5 – Automatically SSH login to DS207+ without password using putty
Dec 13 2009 Original article was a little bit outdated. Article is updated for the firmware 2.2 (0949).
Configure the DS207+
- Enable SSH from admin console: Network Services > Terminal > Enable SSH Service
- Create a normal user called ‘ssh’: Privileges > Users > Create
- SSH or Telnet to 207+ as root (login as root, password same as admin)
- Edit SSH Config file
# vi /etc/ssh/sshd_config
Edit the lines below
Save the file
- Restart sshd:
- Edit passwd file
# vi /etc/passwd
Looks for ssh user, then update /sbin/nologin to /bin/sh
- Create a new firewall rule to allow SSH traffic
Network Services > Firewall > LAN > Click the Create button
Ports: Select from a list of built-in applications
Click ‘Encrypted terminal service’
DiskStation: Adding a SSH firewall rule
Then click OK to close the popup and continue.
Source IP: All
DiskStation: Firewall: Assign 'ALL' for source IP
Action: Access: Allow
DiskStation: Firewall: Allow an firewall rule
Click to OK when done.
- Optional: Enable auto block to reduce the chance of being hacked into the SSH service.
Network Services > Auto Block > Enable auto block
Setup Broadband Router to allow port fowarding of port 22 to DS207+
Following is the example of Linksys WRT54G broadband router
Linksys WRT54G: SSH Port forwarding setup