Community discussions

MikroTik App
 
jkugler
just joined
Topic Author
Posts: 9
Joined: Sat Oct 17, 2009 12:59 am

SSH keys not working in 4.1?

Wed Oct 21, 2009 2:32 am

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
 
MartinT
newbie
Posts: 26
Joined: Wed Jul 22, 2009 1:28 am
Location: CZ

Re: SSH keys not working in 4.1?

Sat Jan 16, 2010 3:04 am

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.

Who is online

Users browsing this forum: GoogleOther [Bot], johnson73, ramirez, wapbytez and 79 guests