NAS326 poweroff from command line, remote machine
VG8
Posts: 1
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.
0
All Replies
-
ssh root@192.168.68.120 poweroff
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 277 USG FLEX H Series
- 277 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 75 Security Highlight