[BUG] SSH client does not works from background script

Hello!

I found strange problem, in all 6.2x
When i run Mikrotik ssh client from command line everything working fine.

[admin@ROUTER] > /system ssh address=192.168.98.2 user=root "uname -a"
Linux metarouter 3.3.8 #2 Tue Mar 11 13:05:25 CET 2014 mips GNU/Linux

Welcome back!

If i put same code in scheduler just like this, or as part of bigger script, it always return error.
Anybody have idea why?

6.25 and 6.26 released, bug is still there.

Have you reportet that problem to MT support at support@mikrotik.com?

I wrote to support over month ago, they said something like “we will fix in future”.
[Ticket#2015011266000566]
In latest Changelog is writen:

What's new in 6.26 (2015-Feb-03 15:18):
*) ssh - fixed ssh related crashes;

But nothing is fixed.

http://forum.mikrotik.com/t/remote-ssh-via-script/64915/1

Complete bullshit if you ask me. There shouldn´t be such restictions built in, everyone who knows how to configure routeros should decide for themself what they want to do.

With auth by certificate SSH no need any interaction with console.
But does not work in background anyway. WTF??
Looks like just stupid BUG. I cannot automate metarouter instance management because of this.

6.27 - problem still there

Someone remembers what was the last version where this worked without problem?

We stop to adopt our billing system for RouterOS because this bug.
When it will be fixed?

All releases until 6.29.1 this still does not work. After talk with support they just hide error message from logs, so it does not work silent.
This is just usual way Mikrotik solve the problems in ROS? :laughing:

I also wanted to know if you could ssh or telnet from a script but apparently not it is only available interactively


Sent from my iPhone using Tapatalk

Since version 6.45beta27 you can use ssh-exec.