ibn
1
same commands work well in ROS 2.9 (2.9.27)
but get errors in ROS 3.x (3.15):
C:>ssh2 -l admin 192.168.0.1 ":env print"
Authentication successful.
"var1"="sdf"
C:>ssh2 -l admin 192.168.0.1 ":put $var1"
Authentication successful.
syntax error (line 1 column 7)
c:\
so anything changed to handle the character $ ?
mrz
2
upgrade to latest version
and then
ssh admin@192.168.0.1 ‘:global a 1; :put $a;’
$ character should be escaped with \ if used with ssh from command line.
http://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(DSA_key_login)
ibn
4
What's new in 3.23:
...
*) ssh - now non-interactive console commands can reference variables;
...
I see . Thank you.