Community discussions

MikroTik App
 
sten
Forum Veteran
Forum Veteran
Topic Author
Posts: 919
Joined: Tue Jun 01, 2004 12:10 pm

Automatic login through SSH?

Sun Jun 27, 2004 11:56 pm

Is there any way to automatically log in through SSH (From either a windows box or say FreeBSD)?
I thought about using public/private keys but i dont see them mentioned, can certificates work? I really need this to make an automated system to apply for example firewall corrections or gather certain system information.
 
Lord
just joined
Posts: 20
Joined: Sun Jun 20, 2004 1:13 am
Location: Moscow,RU

Mon Jun 28, 2004 11:04 am

you can try secureblackbox components, i think.

http://www.secureblackbox.com
 
tully
MikroTik Support
MikroTik Support
Posts: 502
Joined: Fri May 28, 2004 11:07 am

Mon Jun 28, 2004 2:49 pm

In the manaul, I think there is a reference to putty's utility that executes commands for you.

John
 
sten
Forum Veteran
Forum Veteran
Topic Author
Posts: 919
Joined: Tue Jun 01, 2004 12:10 pm

Mon Jun 28, 2004 11:25 pm

In the manaul, I think there is a reference to putty's utility that executes commands for you. John
What im most concerned with is the automatic login procedure, pointers?
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Tue Jun 29, 2004 3:32 am

plink.exe admin@10.10.10.1 -pw password -m commands.txt

Maybe that'll work ?

Sam
 
eflanery
Member
Member
Posts: 376
Joined: Fri May 28, 2004 10:11 pm
Location: Moscow, ID
Contact:

Tue Jun 29, 2004 3:35 am

Expect works well, you just need to learn TCL.

--Eric
 
erikturk
just joined
Posts: 9
Joined: Fri May 28, 2004 1:41 pm

Fri Jul 02, 2004 12:29 am

Sten,

I think I know what you mean. I have the same question.

You want to have automatic ssh logins, without having to type in a password, by just exchanging keys once.

In linux, I would create on the box I want to login to (ala LInux Server Hacks by Flickenger)

ssh server "mkdir .ssh; chmod 0700 .ssh"
scp .ssh/id_rsa.pub server:.ssh/authorized_keys

I think I'm paraphrasing your question when I ask:

"Can you use public keys to login to a Mikrotik box via ssh instead of passwords?"

Erik
 
Vadim
newbie
Posts: 27
Joined: Sat May 29, 2004 9:58 pm
Location: Liepaja, Latvia
Contact:

Wed Jul 07, 2004 9:52 pm

[quote="erikturk"]Sten,

I think I know what you mean. I have the same question.

You want to have automatic ssh logins, without having to type in a password, by just exchanging keys once.

Erik[/quote]

I had the same problem. Commands like 'ssh -l user command' don't work even after entering a password manually. I asked the guys from MikroTik and they told me, that this feature is not implemented yet, and promised to fix this problem in 2.9 version. While waiting for stable v.2.9, I wrote a simple software, that runs a script in a telnet session.

Vadim

Who is online

Users browsing this forum: Ahrefs [Bot], jaclaz, sebus46 and 86 guests