CyberPower AN1302 user manual Edit External Command of PowerPanel for Mac, Oo.o

Page 6

Shutdown NAS in PowerPanel

 

o...o * o

 

 

 

 

. oo.o .

 

 

+------------------------

+

 

 

 

 

 

c. Copy Mac’s 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 Mac’s public key (mac_keys) to NAS’s 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

5

Image 6
Contents Application Note AN1302 Content Configuration on Windows IntroductionSet-up Shutdown Hibernate Off Delay600/delay Configuration on Mac OSConfigure Proper Delay Time to Turn Off UPS Generate an SSH KeyLaunch the Terminal from the Applications Utilities PasswordClick the Open Directory Utility... button Su rootEdit External Command of PowerPanel for Mac Oo.oConfiguration on Linux Configure Shutdown Options of Energy SaverClick the Shutdown Options... button Edit External Command of PowerPanel for Linux Ssh-copy-id -i /root/.ssh/idras.pub AdminAccount@IpAddressUse vi to open /etc/pwrstatd.conf SuggestionEtc/init.d/pwrstatd stop Etc/init.d/pwrstatd start