Community discussions

 
midenok
newbie
Topic Author
Posts: 39
Joined: Fri Dec 27, 2013 5:34 pm

Bug? '/system ssh' asks for password ignoring private key file!

Tue Mar 22, 2016 6:29 am

This is an old topic. I still have the same issue!

Reproduce sequence:
ssh-keygen -q -t dsa -f script.dsa -C "Mikrotik script" -N 'abcdef'
cp script.dsa.pub script.dsa.x.pub
scp script.dsa* router:
    /user
    remove [find name="script"]
    group remove [find name="script"]
    ssh-keys remove [find user="script"]
    ssh-keys private remove [find user="script"]
    group add name="script" policy=ssh
    add name="script" group="script"
    ssh-keys import user=script public-key-file=script.dsa.x.pub
    ssh-keys private import user=script private-key-file=script.dsa public-key-file=script.dsa.pub passphrase="abcdef"
    /system ssh host=127.0.0.1 user=script
group=full instead of group=script doesn't help.
RouterOS 6.34
 
xqlusive
just joined
Posts: 2
Joined: Thu Mar 02, 2017 12:18 am

Re: Bug? '/system ssh' asks for password ignoring private key file!

Wed Mar 22, 2017 8:34 am

use
ssh-keygen -t rsa
instead

Who is online

Users browsing this forum: No registered users and 17 guests