NAS326 poweroff from command line, remote machine
Hi,
Zyxel NAS326 updated to latest firmware.
Is there a way to switch it off from a remote machine in the same LAN via SSH?
This command shows the output of uname -a from a remote machine
sshpass -p '123' ssh admin@192.168.68.120 "uname -a"
But it seems sudo is not available and the only way to switch it off is interactively via the su command:
~ $ su
Password:
BusyBox v1.19.4 (2023-11-06 00:42:18 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ # poweroff
Is there a way to enter password non-interactively so that a one-liner or simple script could switch the NAS326 off?
Thank you in advance.
All Replies
-
ssh root@192.168.68.120 poweroff
0 -
Thanks for the post, but when I substitute my NAS326 IP address I get the response: "connection refused"
(running via win11 command line w/ elevated privileges)
0
Categories
- All Categories
- 442 Beta Program
- 3.1K Nebula
- 239 Nebula Ideas
- 6.8K Security
- 754 USG FLEX H Series
- 377 Security Ideas
- 1.8K Switch
- 87 Switch Ideas
- 1.5K Wireless
- 58 Wireless Ideas
- 7.2K Consumer Product
- 320 Service & License
- 512 News and Release
- 99 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 5.3K FAQ
- 34 Documents
- 90 About Community
- 119 Security Highlight
Guru Member
Freshman Member