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
AllowTcpForwarding yes TCPKeepAlive yes
Save the file
- Restart sshd:
/usr/syno/etc/rc.d/S95sshd.sh restart
- Edit passwd file
# vi /etc/passwd
Looks for ssh user, then update /sbin/nologin to /bin/sh
ssh: x:1031:100::/var/services/homes/ssh:/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
[...] usage series 1, we are using SSH tunneling as proxy solution. However, there are two [...]
[...] All recent firmware already come with SSH server. Just enable it using the admin console. In case you are running older firmware for some reason, you need to setup SSH on your Synology NAS box yourself, please refer to series 1 article here. [...]
[...] Socks proxy do not encrypt data. Your data is subject to be inspected by the administrator. Use SSH tunneling instead to apply encryption and protect your [...]
[...] was sure that there must be a way to tweak the config of the existing daemon. Luckily I found this blog post which seems to be quite hard to find via [...]