I need to execute some script on RouterOS automaticly remotely from another computer (Linux). Problem is, I’m not able to connect there automaticly, without any username and password prompt.
When I need to do that from linux to another linux machine, I’m using privat and public keys for ssh logging. Then I can login without any login prompt. But I didn’t find this posibility in Mikrotik.
So, is any way how to login to Mikrotik automaticly from another machine without login prompt, to execute some commands there remotely?
Thanks, Jirka
What type of remote login?
You can use simple script to login (using username and password) through telnet,
or if you want more advance, you can use API.
I’d prefer SSH login, but telnet login will help me too.
I tried to make telnet account without password, just limited to source IP, but everytime it asked me for password (everytime I must to click Enter).
How to make script for login without any prompts? (from linux)
this is what you need
http://wiki.mikrotik.com/wiki/Use_SSH_to_execute_commands_(DSA_key_login)
EXACTLY!!! That’s it!
Thanks janisk!