Hey Guys,
i want to reboot a VMG1312-B30A by SSH Client Login
The Reboot via Terminal from a 1100ah is working but i cannot login into the modem via script …
Any ideas ?
thx
chris
Hey Guys,
i want to reboot a VMG1312-B30A by SSH Client Login
The Reboot via Terminal from a 1100ah is working but i cannot login into the modem via script …
Any ideas ?
thx
chris
UP
what kind of script do you have? what is the output or error?
Hey,
thx for reply
Normal script
i want to login into a modem by ssh
/system ssh 10.0.0.253;
i can use that in the terminal and after a short moment i can put in the password and reboot the modem
how can i do the logon via ssh and script ?
You must use keys with ssh.
Wysłane z mojego LG-P700 przy użyciu Tapatalka
???
can u explain that …
thx
hi,
i still have the problem … any ideas ?
how can i use the keys ?
chris
have the same problem. I connect to CentOS
script content:
/system ssh user=root address=x.x.x.x command=“sh /etc/scripts/ifdown-wan1.sh”
via new terminal this command work fine
Hi.
You must create a pair keys using ssh-keygen or putty if use windows, then upload the private and public keys to ROS.
Import the private key to ROS under System > Users > SSH Private Keys > Import SSH…
On server side, you must add the content of public key to file authorized_keys under ~/.ssh/ directory of the user which will be connected.
After this, you will not be asked for input a password, only need to specify which user will be used.
Regards.
Hi
ssh authorization has been configured. I’m telling you that in working terminal
sorry for my “google translate”
I tested and is confirmed in ROS 6.38.1 that script which runs via Scheduler or “Run Script” has no effect.
This is the script i used to test.
/system ssh user=root address=NNNNNN port=NNNN command="sh /root/teste.sh"
:log info "kek"
Content of “teste.sh”
mkdir -p mtik
echo "data" > somedata.txt
Has this topic with the same problem → http://forum.mikrotik.com/t/remote-ssh-via-script/64915/1