Community discussions

MikroTik App
 
olivier2831
Member Candidate
Member Candidate
Topic Author
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

How to SSH from RouterOS to a Linux host without password ?

Thu Jun 16, 2022 12:50 pm

Hello,

I'd like to connect from a RouterOS device to a remote Linux host without entering any password.
I've read [1] and tried the command bellow without success.

Before entering this command from RouterOS 6.48.5 terminal, I uploaded on my RouterOS device, both id_rsa and id_rsa.pub files from my own PC.
Then I entered:
/user ssh-keys private import user=lala private-key-file=id_rsa
1. Is it possible to SSH from RouterOS to a remote host ?
2. How do you generate/import necessary SSH keys ?

https://wiki.mikrotik.com/wiki/Manual:S ... rivate_key

Best regards
 
olivier2831
Member Candidate
Member Candidate
Topic Author
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Re: How to SSH from RouterOS to a Linux host without password ?

Thu Jun 16, 2022 4:39 pm

Looking at 7.4-beta4, I read:
*) ssh - fixed host key generation (introduced in v7.3);
It seems to me that what I'm looking for requires 7.3 (or 7.4 beta4), right ?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to SSH from RouterOS to a Linux host without password ?

Thu Jun 16, 2022 4:56 pm

New manual is here, and has all the details:
https://help.mikrotik.com/docs/display/ ... privatekey

No, the changelog just says that specifically in 7.3 there was a bug, which was fixed. 7.2.1 still works ok
 
olivier2831
Member Candidate
Member Candidate
Topic Author
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Re: How to SSH from RouterOS to a Linux host without password ?

Thu Jun 16, 2022 5:00 pm


No, the changelog just says that specifically in 7.3 there was a bug, which was fixed. 7.2.1 still works ok
OK thanks

Who is online

Users browsing this forum: Ahrefs [Bot], Michiganbroadband, patrikg and 83 guests