Community discussions

 
exray
just joined
Topic Author
Posts: 1
Joined: Wed Mar 27, 2019 10:10 am

Multiple ssh-command

Wed Mar 27, 2019 10:40 am

Hello there.

I've got two routers: 192.168.1.1 (RouterOS 6.43.12) and 192.168.2.2 (RouterOS 6.44+)
I've got two rsc-files:

first.rsc:
/ip route print
/ip address print

second.rsc:
/ip route print; /ip address print

When I do on my Linux machine
cat first.rsc | ssh -T 192.168.1.1 -p 22
I see result of both commands, but on second router (
cat first.rsc | ssh -T 192.168.2.2 -p 22
) I see only
/ip route print
result, second command is not executing.

By the way second.rsc works fine and both routers shows full result of both commands.

What's wrong with 6.44+ (6.44.1 also affected) and how can I use multiline rsc with ssh?

Who is online

Users browsing this forum: No registered users and 11 guests