Community discussions

MikroTik App
 
pplcanfly
just joined
Topic Author
Posts: 2
Joined: Fri Feb 19, 2021 3:40 pm

Unable to use ssh keys

Sat Oct 16, 2021 10:58 am

Good morning

I've been having this problem that is driving me nuts
I used to have a rsa key in the OpenSSH standard, now I don't know when it was changed by mikrotik to only allow PEM files "I've been googling my problem for hours"

When I use a newly generated rsa: ssh-keygen -t rsa -m PEM -f ~/.ssh/mikrotik and then upload the keys to the router and do the ssh connection: ssh -p 2288 -i ~/.ssh/mikrotik my_user@192.168.88.1
I still get presented with a password prompt, no way to autologin with cert

This is my print out
/ip ssh print
forwarding-enabled: no
always-allow-password-login: no
strong-crypto: yes
allow-none-crypto: no
host-key-size: 2048

I've been at it for hours, and I'm probably missing something small
Any help would be much appreciated
 
alpiua
just joined
Posts: 1
Joined: Fri Oct 29, 2021 5:44 am

Re: Unable to use ssh keys

Fri Oct 29, 2021 5:47 am

Faced the same, I assume due to OpenSSH updated on my host
Try to use this ssh option:
ssh -oPubkeyAcceptedKeyTypes=+ssh-rsa admin@mikrotik
 
pplcanfly
just joined
Topic Author
Posts: 2
Joined: Fri Feb 19, 2021 3:40 pm

Re: Unable to use ssh keys

Fri Dec 10, 2021 2:11 pm

Faced the same, I assume due to OpenSSH updated on my host
Try to use this ssh option:
ssh -oPubkeyAcceptedKeyTypes=+ssh-rsa admin@mikrotik
Good afternoon,

Thank you for the fix. I've been frustrated ever since it happened
Mods can proceed to close the thread. I consider the matter resolved

Thanks again.

Who is online

Users browsing this forum: Ahrefs [Bot], GoogleOther [Bot], Luanscps and 55 guests