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.

Monitor Synology disk temperature from SNMP

I’m always looking at how to get informations from my I.T. systems ; although it often ends they do nothing…

Here’s a trick to monitor the disks temperature of a Synology NAS (DS409slim in my case).
Continue reading “Monitor Synology disk temperature from SNMP”

Improve Synology DS409slim shell using ipkg

I own a Synology DS409slim on which I have enabled SSH. The primary idea was just to have a look behind the hoods. This is quite simple: browse to the configuration panel, select the terminal services section and active the SSH daemon.

But once there, you’re stuck with a basic shell and a few commands. No `less`, no `grep`, no `bzip2`, no `perl`… Synology provides an official packages repository that provides a few extra features ; like VPN, LDAP and such ; but not so much to get a “complete” UNIX environment. The savior here is called “ipkg”. Quoting Wikipedia: “(…) the Itsy Package Management System (ipkg), is a lightweight package management system designed for embedded devices that resembled Debian’s dpkg. (…)”. It provides a bunch a GNU-like tools and it runs on the Synology!

Continue reading “Improve Synology DS409slim shell using ipkg”

Time Machine server with Synology

I was using a 2TB USB disk as a Time Machine storage for my MacBook Pro. The thing is I keep forgetting to plug it to run the backup. So, I’m going to use this storage as a Time Machine remote storage with my Synology DS409-slim.
Continue reading “Time Machine server with Synology”

Monitor a Synology NAS with Munin

My Synology DiskStation DS409slim is, via the DSM software, SNMP aware. This means I can poll it to get some information using a SNMP capable monitoring system. This is how I configured Munin to grab some metrics from the NAS.

Continue reading “Monitor a Synology NAS with Munin”