Page 1 of 1

SSH keys not working in 4.1?

Posted: Wed Oct 21, 2009 2:32 am
by jkugler
I have uploaded and imported the SSH key for my user (under /user ssh-keys) and this is the result:
[admin@MikroTik] /user> ssh-keys print
 # USER                 KEY-OWNER
 0 jkugler              jkugler@hosanna
These are my users:
[admin@MikroTik] /user> print
Flags: X - disabled
 #   NAME                             GROUP                            ADDRESS
 0   ;;; system default user
     admin                            full                             0.0.0.0/0
 1   ;;; Joshua Kugler
     jkugler                          full                             0.0.0.0/0
However, when I try to login to the router with my key, it prompts for my password:
jkugler@hosanna:~$ ssh -i /home/jkugler/.ssh/id_dsa jkugler@192.168.88.1
jkugler@192.168.88.1's password:
And the router says:
echo: system,error,critical login failure for user jkugler from 192.168.88.254 via ssh
The "failure" messages comes *before* I enter my password.

Is there something else I need to enable for SSH logins?

Thanks!

j

Re: SSH keys not working in 4.1?

Posted: Sat Jan 16, 2010 3:04 am
by MartinT
I had similar issue today: ssh-key which I use on a lot of RouterOS system was fail with one RB750G (version v4.4). After investigation I found reason: there was password (of user with this ssh-key) with 32 chars length. After changing password (to 24 chars length) and reimport ssh-key, access with this ssh-key is working as expected.