SSH run script on remote mikrotik device

Hi guys,

I want to use ssh to run a script that is stored on a remote mikrotik device.

Local device I run below;

:local Status ([/system ssh-exec address=192.168.88.26 user=admin command=“/system script run disablePort”])
:log info $Status



I can see the device making the SSH connection but failing to run the script that is stored on remote mikrotik device.


Can this be done using SSH?

Ok, I tried using telnet with ssh to to remote device but I was getting permission denied, very strange. I then regenerate host key and export to remote device.
The command now works as it should, I wonder with the SSH keys stopped working and I have to create new keys