I recently acquired a 6 TB Seagate NAS drive which I am using for nightly backups of my servers, as well as snapshots of several Dropbox accounts.
While the web interface on the device isnâ€™t too bad, I wanted a little more control over it, as well as the ability to monitor the device's health with some custom munin graphs.
Here's how to enable SSH without wiping the drive and installing custom firmware.
$ mdadm -A /dev/md0 /dev/sda1 /dev/sdb1 mdadm: /dev/md0 has been started with 2 drives. $ mkdir /mnt/md0 $ mount /dev/md0 /mnt/md0
ssh stream tcp nowait root /usr/sbin/dropbear dropbear -i
You can do this in one shell command by executing this:
echo "ssh stream tcp nowait root /usr/sbin/dropbear dropbear -i" >> /mnt/md0/etc/inetd.conf
/mnt/md0/etc/shadowwith a text editor, and replace the hashed password for "root" with the hashed password of the user you created. The hashed password is the characters between the second two colons, and begins with
$ cd $ umount /mnt/md0 $ mdadm -S /dev/md0 mdadm: stopped /dev/md0