CyberPower AN1302 Sleep Apnea Machine User Manual


 
Shutdown NAS in PowerPanel
5
| o...o * o |
|. oo.o . |
+------------------------+
c. Copy Macs public key file (id_rsa.pub) to SSH server of NAS for new mac_keys.
scp ~/.ssh/id_rsa.pub AdminAccount@IpAddress:~/.ssh/mac_keys
AdminAccount is the administrator account of NAS. IpAddress is the IP address or domain name of
NAS.
This command requires entering yes and the NAS administrator’s password to continue connection.
The message shows as below example:
The authenticity of host '192.168.20.10 (192.168.20.10)' can't be established.
RSA key fingerprint is b1:99:1e:25:a5:f9:c9:86:15:5e:5a:4b:53:4f:a8:c9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.20.10' (RSA) to the list of known hosts.
root@192.168.20.10's password:
d. Login to NAS via SSH client command
ssh AdminAccount@IpAddress
AdminAccount is the administrator account of NAS. IpAddress is the IP address or domain name of
NAS.
e. Append Macs public key (mac_keys) to NASs authorized_keys.
cat ~/.ssh/mac_keys >> ~/.ssh/authorized_keys
f. Change the access permission of the public key.
chmod 600 ~/.ssh/authorized_keys
g. Logout NAS.
Exit
4. Refer to the step 1 to disable root account in Mac OS X If you want to keep disabled.
Edit External Command of PowerPanel for Mac
Edit the script of PowerPanel application allowing to shutdown NAS from the below steps.
1. Open PowerPanel application from Applications.
2. Make sure that you have installed the Daemon from the Configure toolbar > Daemon tab.
3. Click the lock icon and authenticate as an administrator account.
4. Click the Edit script button from the Configure toolbar > Shutdown tab.
5. Append the below command to allow to shutdown NAS.
ssh AdminAccount@IpAddress poweroff