Community discussions

MikroTik App
 
User avatar
phallaccmt
just joined
Topic Author
Posts: 10
Joined: Tue Jun 23, 2015 7:34 pm

Mikrotik How to SSH from Linux to Mikrotik without Password

Thu Sep 27, 2018 10:46 am

http://www.phallaccmt.com/2018/09/161-m ... -with.html

------------------------------
on Linux(Ubuntus)

#ssh-keygen -t dsa
# cd /root/.ssh/
# ftp 192.168.120.138
> put id_dsa.pub
> quit

On Mikrotik:

/user ssh-keys import user=admin public-key-file=id_dsa.pub
-----------------------------

Note: if you want to access mikrotik router with another user(not admin)
you need to change like this "/user ssh-keys import user=[UserName] public-key-file=id_dsa.pub"

Ref: https://aacable.wordpress.com/2011/11/2 ... -commands/
 
msatter
Forum Guru
Forum Guru
Posts: 2912
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Mikrotik How to SSH from Linux to Mikrotik without Password

Thu Sep 27, 2018 1:20 pm

Maybe better to switch to RSA.

https://wiki.mikrotik.com/wiki/Manual:IP/SSH
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: Mikrotik How to SSH from Linux to Mikrotik without Password

Thu Sep 27, 2018 2:19 pm

Agreed, you should not be using DSA in 2018. Even RSA isn't great, but Ed25519 keys are not yet supported by Mikrotik.

Who is online

Users browsing this forum: Bing [Bot], mszru, sas2k, vetal12311 and 196 guests