Community discussions

MikroTik App
 
ejmerkel
newbie
Topic Author
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

SSH issue on v5.0rc5

Wed Dec 08, 2010 8:45 pm

Just noticed on a couple of routers running v5.0rc5 that once an SSH key is imported for the user admin, you can no longer SSH into the router via admin and authenticate via password. I can SSH in via key authentication without an issue. If I remove the SSH keys, I can once again login via username and password.

Bugs?

Eric
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: SSH issue on v5.0rc5

Wed Dec 08, 2010 8:49 pm

No, that's a 'feature'.
 
ejmerkel
newbie
Topic Author
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

Re: SSH issue on v5.0rc5

Wed Dec 08, 2010 9:27 pm

Seriously this has changed in v5? We import ssh keys for our backend systems to be able to automate certain tasks but if I have a tech in the field, I'd like them to be able to login via username/password directly as well.

Can this behavior be changed? I assume not...

Eric
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SSH issue on v5.0rc5

Thu Dec 09, 2010 9:08 am

this was introduced as a security measure to not to allow week protection if something more "potent" is available at hand.

In this case certificate/key always beats password.

As a good solution i can suggest you to use user-manager (or any other RADIUS server) and set router authentication to be done by RADIUS. That way, you set up in your RADIUS - what router what user can log in and username will be available on all the routers.
 
ejmerkel
newbie
Topic Author
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

Re: SSH issue on v5.0rc5

Thu Dec 09, 2010 8:16 pm

We have ssh firewalled off to anything but our management IP's so for us, this really isn't necessary. Is there any consideration for making this an option vs an all or nothing approach?

Eric
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: SSH issue on v5.0rc5

Thu Dec 09, 2010 8:19 pm

we use something like this:

normal user:
admin

ssh cert user:
admin-cert

just use a different login for the cert user. its good practice anyhow.
 
ejmerkel
newbie
Topic Author
Posts: 33
Joined: Wed Jun 03, 2009 8:26 pm

Re: SSH issue on v5.0rc5

Thu Dec 09, 2010 9:13 pm

I understand but I have 100's of devices already programmed the "old way." :(
 
mrbueno
just joined
Posts: 1
Joined: Sun Oct 10, 2010 12:17 am

Re: SSH issue on v5.0rc5

Thu Dec 09, 2010 11:55 pm

You can create a new login for your techs and leave the automated one alone. ;)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SSH issue on v5.0rc5

Fri Dec 10, 2010 8:51 am

that is why i suggested to use RADIUS path - set all devices to use radius, and then create users there. Local users on the router will still work.