Community discussions

MikroTik App
 
slvnet
newbie
Topic Author
Posts: 28
Joined: Wed Feb 12, 2014 4:23 pm

ssh + ssh-keys -> Problem to login from another machine

Fri Feb 12, 2021 12:21 am

Hello

Router os: 6.47.9
user: 'abc'
pass: 'any'
Can connect from any machine by ssh. Correct.

Import ssh key for user 'abc'

Cannot login from any machines without priv key
Should be - if there is priv key - login without password
If there is not priv key - ask for password (RouterOS ask) and if password correct - let to get into the system. RouterOS not allow. Just ask again for password

Best
Sylwester
 
slvnet
newbie
Topic Author
Posts: 28
Joined: Wed Feb 12, 2014 4:23 pm

Re: ssh + ssh-keys -> Problem to login from another machine

Fri Feb 12, 2021 3:23 am

Solution

/ip ssh set always-allow-password-login=yes
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1280
Joined: Tue Jun 23, 2015 2:35 pm

Re: ssh + ssh-keys -> Problem to login from another machine

Fri Feb 12, 2021 4:10 am

How you doing
/user ssh-keys import user=
 
slvnet
newbie
Topic Author
Posts: 28
Joined: Wed Feb 12, 2014 4:23 pm

Re: ssh + ssh-keys -> Problem to login from another machine

Fri Feb 12, 2021 12:37 pm

How you doing
/user ssh-keys import user=
Mean ?
After import pub key, You cannot login from another machine (account) by ssh by the password (not priv key). To change it in ROS - solution in sec post '/ip ssh set always-allow-password-login=yes'
 
outtahere
just joined
Posts: 4
Joined: Fri Aug 28, 2020 1:57 pm

Re: ssh + ssh-keys -> Problem to login from another machine

Mon Mar 01, 2021 7:43 am

Solution

/ip ssh set always-allow-password-login=yes
Thanks, had the same issue. Sometimes it's knowing where to look :-/

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], lif2k3, mkx, unlikely and 106 guests