Feature request (SCRIPTING)

It is possible to make ssh-client commands from RoS console working via Scripts/Netwatch/Sheduller?
I found a lot of RoS-users, who need this feature as of 2010 for automation some rutine tasks.

Import private and public key on Router A:

/user ssh-keys private import private-key-file=id_rsa public-key-file=id_rsa.pub

Then import public key on Router B:

/user ssh-keys import user=admin public-key-file=id_rsa.pub

Then ssh from Router A to Router B:

/system ssh address=10.0.0.1 user=admin command="/interface print;"

I mean, at this time, there is only one way to execute commands via SSH from RoS-to-RoS — put it directly to console, and I’m asking about possibility to do it via scripts, for instance.

Just write the command into a script. There is no difference - after all scripts are just a collection of commands.

Maybe u firstly try to do this?))
(Spoiler: It doesn’t work)

It does work from script, but I just realized it fails when started from scheduler. No idea what’s wrong, no logs on either side.

Can u make some screenshots or export config for me?