Community discussions

MUM Europe 2020
 
User avatar
Edoras
newbie
Topic Author
Posts: 32
Joined: Wed Apr 05, 2006 12:03 am
Location: Prague, Czech rep.

Auto login

Wed Aug 08, 2007 12:47 am

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
 
valens
Trainer
Trainer
Posts: 246
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Re: Auto login

Wed Aug 08, 2007 6:03 am

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.
 
User avatar
Edoras
newbie
Topic Author
Posts: 32
Joined: Wed Apr 05, 2006 12:03 am
Location: Prague, Czech rep.

Re: Auto login

Wed Aug 08, 2007 9:53 am

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)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Auto login

Wed Aug 08, 2007 1:37 pm

 
User avatar
Edoras
newbie
Topic Author
Posts: 32
Joined: Wed Apr 05, 2006 12:03 am
Location: Prague, Czech rep.

Re: Auto login

Wed Aug 08, 2007 8:49 pm

EXACTLY!!! :-) That's it!
Thanks janisk!

Who is online

Users browsing this forum: antonme, Bing [Bot], IPANetEngineer, MSN [Bot] and 34 guests