Enable sFTP on Synology DS409slim

Synology is kind enough to allow remote SSH connection to their NAS. I have enabled it on my DS409slim. But there is just one little missing feature: sFTP ; that is transfer file via SSH.

To enable sFTP with DSM 4.0, log on the Synology using SSH, manually enable the sftp subsystem and restart the SSH dæmon:

# vi /etc/ssh/sshd_config (...) Subsystem sftp internal-sftp -f DAEMON -l VERBOSE (...) # /usr/syno/etc/rc.d/S95sshd.sh restart Stop SSH... Connection to syno closed by remote host.

Unfortunately, that last command never restarted the SSH daemon… Just log on the Web interface, browse to the configuration panel and, from the “Terminal” section, select “Enable the SSH service”. This will restart the SSH dæmon and give you access to sFTP transfer too.

Terminal Server (TSE) connexion through SSH

Usually, when I want to connect to my LAN from the Wild Wild World, I use a VPN connexion. But there are times when it is not possible ; especially now that my work LAN has the same IP range as my home LAN… An alternate way to access my unpublished home services from outside is to use SSH tunnels.

What you need is an SSH server on the LAN that you want connect to. The SSH server has to be able to connect to the LAN server you aim to connect to. Then, all you have to do is a bit of “Port Forwarding”.

Continue reading “Terminal Server (TSE) connexion through SSH”

Using SSH keys to connect to ESXi

In VMware ESXi 5, SSH is enabled through the “Configuration / Security Profile / Services” section. When you connect using the root user, you have to specify the root password. If you want to use SSH keys, the only thing you have to do is copy them, over ssh, to a dedicated directory:

# cd ~/.ssh # scp id_rsa.pub authorized_keys root@esxi:/etc/ssh/keys-root/

You can now connect to the ESXi using your SSH keys (and the `ssh-agent`). So simple!

Source: SSH Keys & Lockdown Mode Caveat in ESXi 5