161. Mikrotik How to SSH from Linux to Mikrotik without Password

You can contact me: plus.google.com/+PhallaCCMT; youtube.com/phallaccmt; facebook.com/Phalla.CCMT; twitter.com/PhallaCCMT and Phalla.CCMT@gmail.com

on Linux(Ubuntus)

#ssh-keygen -t dsa
# cd /root/.ssh/
# ftp
> 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/25/howto-login-on-remote-mikrotik-linux-without-password-to-execute-commands/

Next Post »