Automatic login through SSH?

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.

you can try secureblackbox components, i think.

http://www.secureblackbox.com

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?

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

Maybe that’ll work ?

Sam

Expect works well, you just need to learn TCL.

–Eric

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

[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