Community discussions

MikroTik App
 
sanchezboss
just joined
Topic Author
Posts: 3
Joined: Fri Sep 26, 2014 12:01 am

Mikrotik SSH client and FreeSSHd server

Fri Sep 26, 2014 12:18 am

Hi everybody,
I have a problem to get working ssh client on my MT(6.19) and FreeSSHd server on my WIN7 using private key, because I want to use ssh client over script. The SSHd works fine when I use Putty as client and private key logging (created in PuttyGen - DSA key). But when I copy the public key to the router

[admin@ahoj] > user ssh-keys private import public-key-file=ssh.pub private-key-file=ssh user=ssh
passphrase:
[admin@ahoj] >



private key is created, but when I want to log to my server in, I can not.

[vision-admin@ahoj] > system ssh address=192.168.89.254 port=10000 user=ssh
Welcome back!


Next I tried to create the key using ubuntu OpenSSH, also not working.

I suppose the key is not correct, but I dont know how to successfully create connection.

Thank you for your help.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Mikrotik SSH client and FreeSSHd server

Fri Sep 26, 2014 1:38 pm

check if keys are compatible.Sometimes you have to convert key from one notation to another for it to work. properly. Also, it has to be DSA key, no exceptions.
 
sanchezboss
just joined
Topic Author
Posts: 3
Joined: Fri Sep 26, 2014 12:01 am

Re: Mikrotik SSH client and FreeSSHd server

Fri Sep 26, 2014 4:52 pm

How does Mikrotik format of DSA look?
 
sanchezboss
just joined
Topic Author
Posts: 3
Joined: Fri Sep 26, 2014 12:01 am

Re: Mikrotik SSH client and FreeSSHd server

Sat Sep 27, 2014 9:51 am

Could you show me, how right DSA format looks for mikrotik?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Mikrotik SSH client and FreeSSHd server

Tue Sep 30, 2014 3:24 pm

it is the same as one used by OpenSSH

completely forgot what it was called, but for example it is not compatible with one used by putty tools.

Who is online

Users browsing this forum: 4l4R1, bashay8, Bing [Bot], dervomsee, kub1x, rogerioqueiroz, tdw, tjanas94 and 86 guests