Ray: Experimental

My Visitor

Like this site!

Wanna help other found this site? +1 us now!

Google +1 Button Privacy Policy

Synology Tags

My WebHost

I recommend hostgator, here is why.

Synology DS207+ 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.

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

Synology DS207+ usage series 1 - SSH tunneling using putty and Bitvise Tunnelier

Dec 13 2009 Original article was a little bit outdated. Article is updated for the firmware 2.2 (0949).

Configure the DS207+

  1. Enable SSH from admin console: Network Services > Terminal > Enable SSH Service
  2. Create a normal user called ‘ssh’: Privileges > Users > Create
  3. SSH or Telnet to 207+ as root (login as root, password same as admin)
  4. Edit SSH Config file

    # vi /etc/ssh/sshd_config

    Edit the lines below

       AllowTcpForwarding yes
       TCPKeepAlive yes
    

    Save the file

  5. Restart sshd:
    /usr/syno/etc/rc.d/S95sshd.sh restart
  6. 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
    
  7. 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

    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

    DiskStation: Firewall: Assign 'ALL' for source IP

    Action: Access: Allow

    DiskStation: Firewall: Allow an firewall rule

    DiskStation: Firewall: Allow an firewall rule

    Click to OK when done.

  8. 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

Linksys WRT54G: SSH Port forwarding setup