This module implements an OpenSSH server and provides a basic status and configuration page that allows to fully configure the server. This module is meant to replace the older SSHD module.
OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions. OpenSSH is developed by the OpenBSD Project.
This module should work for the following models:
Extract the module binary package (.mod) from the archive and install it.
After enabling the module the module status and configuration page can be accessed. The SSH daemon listenes on port 10022 on all available interfaces - this can be changed through the module configuration page. To login use the use name root along with the admin password.
Using the Wrapper Scripts
Since release 1.04.00 of the module two platform independend wrapper scripts are available to remotely trigger a reboot or shutdown of the NAS. The scripts are
to reboot the NAS
to shut the NAS down (poweroff)
To remotely trigger one of the actions you just need to connect to the NAS through ssh as root and run one of the scripts (replace NASIP by the IP address of the NAS). Example:
ssh -l root NASIP /raid/data/module/FaJoSSHD/system/sbin/wrapper.shutdown
To automate the action you may use public keys. Just create a keypair for every action on your client and then add a line similar to the one below for each action to the file /raid/data/module/FaJoSSHD/system/etc/ssh/users/root/authorized_keys:
command="/raid/data/module/FaJoSSHD/system/sbin/wrapper.shutdown" ssh-rsa .....
The "ssh-rsa ....." has to be replaced by the public key to be used for shutdown in the example above.
Now you can run
ssh -l root -i KEYFILE NASIP
with KEYFILE replaced by the private key file to use and NASIP replaced by the IP address of the NAS.
See also .