NAS326 remote power off

Teligence
Teligence Posts: 16  Freshman Member
First Comment Friend Collector Sixth Anniversary

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

  • Mijzelf
    Mijzelf Posts: 2,827  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary

    Did you enable the ssh server on the NAS? If yes, can you login over ssh?

  • Teligence
    Teligence Posts: 16  Freshman Member
    First Comment Friend Collector Sixth Anniversary
    edited January 21

    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.

  • Mijzelf
    Mijzelf Posts: 2,827  Guru Member
    250 Answers 2500 Comments Friend Collector Seventh Anniversary

    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
    

  • Teligence
    Teligence Posts: 16  Freshman Member
    First Comment Friend Collector Sixth Anniversary
    edited January 21

    • 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?

Consumer Product Help Center