ssh user@host "command" works well
but
ssh user@host <<EOF
command
EOF
hangs on the first line, so second commands never executed...
Problem confirmed at 7.20.2 and 7.20.1
Any workaround very needed...
It’s very strange, but sometimes commands executed (very rarely), sometimes - not… Tried from two Linux machines to two different rOS (hapAC3 and 5009)
#!/bin/bash
ssh -T olegon@192.168.1.1 <<EOF
/system/routerboard/print
/system/routerboard/print
/system/routerboard/print
EOF
I only can see first line output, but in 1% cases script works completely…
Thank you, this is related topic, but I don’t understand, is this confirmed bug?
It’ s very hard to me to change current scripts, using upload files and it’s not very good for small Mikrotik disk, as I suppose…
I do think so, but it won’t hurt for you to report it to the support department. Log into Atlassian - Support or support@mikrotik.com.
1 Like
confirmed on my company’s CRS328-24P-4S+RM.
downgraded to 7.19.6 in the meantime.
The issue is confirmed!
Fixed in 7.20.4, thank you ![]()