55°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Enabling SSH on the Seagate BlackArmor NAS 220

    July 10, 2011

    2015 Update: I've heard reports that this no longer works and may brick the device. Proceed at your own risk and keep in mind that this article is now over 4 years old.


    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.

    1. Set up a new user account on the device from the web interface, and create a password.
    2. Shut down the device, remove both drives, and connect them to a local computer with SATA cables.
    3. Boot your linux computer with the drives attached, it’s probably safest to boot from some sort of Live CD. I used Fedora.
    4. When you get to a shell, execute the following commands to mount the drives.
    $ 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
    1. Add the following line to the file /mnt/md0/etc/inetd.conf:
    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
    1. Edit /mnt/md0/etc/shadow with 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 $1$$.
    2. Unmount the drives and shut down the array:
    $ cd
    $ umount /mnt/md0
    $ mdadm -S /dev/md0
    mdadm: stopped /dev/md0
    1. Put the drives back in the NAS device and turn it back on!
    2. After it boots, you'll be able to ssh in as root with the password you set from the web interface.

    login prompt

    Sun, Jul 10, 2011 9:07am -07:00
Posted in /articles

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv