SSH keys not working in 4.1?
RouterOS general discussion

2 posts   •   Page 1 of 1
jkugler
just joined
 
Posts: 9
Joined: Sat Oct 17, 2009 12:59 am

SSH keys not working in 4.1?

by jkugler » 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:
Code: Select all
[admin@MikroTik] /user> ssh-keys print
 # USER                 KEY-OWNER
 0 jkugler              jkugler@hosanna

These are my users:
Code: Select all
[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:
Code: Select all
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:
Code: Select all
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
just joined
 
Posts: 14
Joined: Wed Jul 22, 2009 1:28 am

Re: SSH keys not working in 4.1?

by MartinT » Sat Jan 16, 2010 4: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.
MartinT

2 posts   •   Page 1 of 1

Who is online

Users browsing this forum: Google [Bot] and 33 guests

It is currently Sun Dec 21, 2014 8:23 am