NAS326 remote power off





I'm running Windows 11. Is there an option to shutdown/power down via CLI? I've tried "ssh root@192.168.27.13 poweroff" and it responds with "Connection refused".
All Replies
-
Did you enable the ssh server on the NAS? If yes, can you login over ssh?
0 -
I've enabled SSH under network/terminal, however I now get the response: "Unable to negotiate with 192.168.27.13 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss".
My goal is to create a single command (including appropriate authentication) to put in a batch file to execute a poweroff function from my laptop on the same LAN.
Note: I can telnet ok - I receive the expected username/password prompts when connecting.
0 -
The ssh server is outdated, and the client by default considers it's encryption is inaccurate. You can tell him to shut up.
ssh -oHostKeyAlgorithms=+ssh-rsa root@nas
0 -
- Thanks - that lets me in.
- 1. Is there some way to make it persistent? I have no need of that level of security. Just a name/password will do adequately.
- 2. How do I include the password in the command so I don't have to enter it at the prompt?
0 -
- On Linux you could add a config line in ~/.ssh/config. No idea where that file could be located on Windows. -if it exists at all.
But if you write a batch file to shutdown the NAS, it doesn't matter that the command line is a bit longer, does it?
2. The canonical way is to use a key pair. A public key on the NAS in /root/.ssh/, and a private locally. Unfortunately that won't work in your case, as /root is on a ramdrive, so your public key won't survive a reboot. For admin it might work, but unfortunately admin has no right to shutdown the box.
sshpass might do the job.
0
Categories
- All Categories
- 415 Beta Program
- 2.5K Nebula
- 152 Nebula Ideas
- 102 Nebula Status and Incidents
- 5.8K Security
- 305 USG FLEX H Series
- 284 Security Ideas
- 1.5K Switch
- 77 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.5K Consumer Product
- 255 Service & License
- 396 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.7K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 87 About Community
- 77 Security Highlight