Community discussions

MikroTik App
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

Routeros 7 unable to login via ssh passwordless

Mon Jun 20, 2022 12:52 pm

Hi, i have some router script that use openssh routeros to routeros.
With version 7.3 has stopped working. I have done some steps as previous versions. I have exported key from first router and imported his .pub key in target router for the ssh user but i can'import it because it say an error about key smaller than 1024 not allowed.

Ok so i have generated a new key pair from linux.
server
server.pub

I have imported server private key on first router and associated to user admin-ssh.
i have imported server.pub key in target router and associated to user admin-ssh

But i cannot login on target router passwordless:

system/ssh user=admin-ssh address=192.168.1.2
password:


if i login from linux it work:
ssh -i server.pub admin-ssh@192.168.1.2

Need help please.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11786
Joined: Thu Mar 03, 2016 10:23 pm

Re: Routeros 7 unable to login via ssh passwordless

Mon Jun 20, 2022 11:09 pm

It seems that ssh keys are somehow broken in 7.3 and that 7.4beta has it fixed.
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

Re: Routeros 7 unable to login via ssh passwordless

Wed Jun 22, 2022 11:38 am

Ok i have update to that version. when i click regenerate host key on rb 4011 certifcate generation run forever and cpu goes to 50% until reboot
 
meconiotronic
newbie
Topic Author
Posts: 30
Joined: Wed Mar 14, 2012 9:50 am

Re: Routeros 7 unable to login via ssh passwordless

Wed Jun 22, 2022 1:15 pm

Nothing after several attempts it doesn't work.
I have generated a new ssh key for test, imported in routeros 1 and 2 but still cant work.

Who is online

Users browsing this forum: twoj and 43 guests