Page 1 of 1
[BUG] SSH client does not works from background script
Posted: Tue Jan 13, 2015 7:58 am
by mitry
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?
Re: [BUG] SSH client does not works from background script
Posted: Tue Feb 10, 2015 1:17 pm
by mitry
6.25 and 6.26 released, bug is still there.
Re: [BUG] SSH client does not works from background script
Posted: Tue Feb 10, 2015 8:17 pm
by Chupaka
Have you reportet that problem to MT support at
support@mikrotik.com?
Re: [BUG] SSH client does not works from background script
Posted: Wed Feb 11, 2015 6:20 am
by mitry
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.
Re: [BUG] SSH client does not works from background script
Posted: Wed Feb 11, 2015 2:59 pm
by biomann
http://forum.mikrotik.com/viewtopic.php?t=71262#p363011
everything that looks suspiciously interactive, like ssh login or telnet login will not work if ran from scheduler or script.
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.
Re: [BUG] SSH client does not works from background script
Posted: Wed Feb 11, 2015 4:14 pm
by mitry
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.
Re: [BUG] SSH client does not works from background script
Posted: Fri Feb 13, 2015 7:44 am
by mitry
6.27 - problem still there
Re: [BUG] SSH client does not works from background script
Posted: Thu Feb 26, 2015 7:45 pm
by davidnvega
Someone remembers what was the last version where this worked without problem?
Re: [BUG] SSH client does not works from background script
Posted: Mon Mar 02, 2015 3:45 pm
by daskovas
We stop to adopt our billing system for RouterOS because this bug.
When it will be fixed?
Re: [BUG] SSH client does not works from background script
Posted: Sun Jun 07, 2015 4:30 pm
by mitry
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?
[BUG] SSH client does not works from background script
Posted: Tue Jun 09, 2015 6:39 pm
by wcsnet
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
Re: [BUG] SSH client does not works from background script
Posted: Thu Apr 18, 2019 11:42 am
by palii
Since version 6.45beta27 you can use
ssh-exec.