Login to remote host SSH

I am trying to write a script to log into a remote host (not mikrotik) and issue some commands.

Specifically I am trying to ssh (or telnet, or snmp) into a tripp lite ups and reboot the ups. Has anyone here done this before or have any suggestions? The problem is I can’t complete the login sequence as
/system tool ssh user=user command=“” does not work.

Thanks!

“command” is used to send commands to remote device.

use:
/system ssh x.x.x.x user=yyyy

and prompt will ask for password.

correct, but how can I enter that password in a script?

You can’t. To connect to other devices automatically, you have to use SSH keys

Are there any plans to allow for auto-login/script-login functionality either via ssh or telnet into another device?

Also, I could reboot the UPS via SNMP, any plans to integrate some sort of snmpput type functionality into RouterOS?

Thanks!

as i know this the only way

And the remote host has to support static ssh keys as well correct? So I could not do this with a tripplite ups?

in routeros you add DSA pub key and then you can log into this router using private key. Lately Routeros has gained feature that you can login to other device using private key if public key is present. If remote device supports ssh keyed login, then you can do that and execute remote commands using ssh.

Right, but for a device such as a UPS without any advanced functionality this is not doable.