Proxmox SSH EXEC shutdown

Hi,

could you please help my with the script below?

/system ssh-exec address=192.168.1.2 port=22 user=root command="shutdown"¨

I have created user root with correct password but I get this: failure: authentication failure

Thank you

Hi Guys,

noone is using system ssh-exec to control linux machine??? Please help…

Please don’t use username and password,it is’t safe anymore use keys instead.

https://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(public/private_key_login)
https://wiki.mikrotik.com/wiki/Manual:System/SSH_client#SSH-exec