Thursday, June 30, 2011

Thecus storage automatic shutdown from remote host

- Load latest SSH and SYSUSER modules from http://naswebsite.com/wiki/Products or http://www.futterknecht.at/index.php/downloadsep/docpage/cat_view/34-thecus-n5200/35-n5200-modules/63-n5200miscmodules
- Optionally change password of user sys (default password is sys)
- On the remote host create rsa keys:
    ssh-keygen
    Do not enter a pass-phrase (so automatic logon works)
    Default filename and path is ok
    cat ~/.ssh/id_rsa.pub
    Copy content of id_rsa.pub
- Copy the contents of id_rsa.pub to Thecus storage into
    /raid/data/module/SSHD/system/etc/ssh/authorized_keys
    chmod 0600 /raid/data/module/SSHD/system/etc/ssh/authorized_keys
- At the first logon a warning appears that the hostkey is added to know_hosts. Enter yes to proceed.
- Enter the following command from remote host to poweroff Thecus
  ssh sys@Thecus.IP.Address /sbin/poweroff

No comments:

Post a Comment