Community discussions

MikroTik App
 
penta3
just joined
Topic Author
Posts: 2
Joined: Tue Sep 01, 2015 4:28 am

ssh command error

Tue Sep 01, 2015 4:44 am

hey guys

i have a big problem with the putty ssh command while connected to microtik
i wana to add user key but this error didn't let me to do this
please help me
Image
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: ssh command error

Tue Sep 01, 2015 10:24 am

That is not a RouterOS command. Where are you connected to?
 
Ape
Member Candidate
Member Candidate
Posts: 177
Joined: Sun Oct 06, 2013 3:32 pm
Location: Freiburg, Germany
Contact:

Re: ssh command error

Tue Sep 01, 2015 10:43 am

Hi,

I think you would like to import a user's SSH key.

AFAIK you cannot generate the key on the MikroTik router. You have to generate it on another machine and then move the public key via Winbox or ftp to the router's filesystem.

Afterwards, you can use
/user ssh-keys import public-key-file=id_rsa.pub user=admin
to import the public key for the user admin. This is of course just an example and you have to adapt filename and username to your needs / scenario.

Ape
 
penta3
just joined
Topic Author
Posts: 2
Joined: Tue Sep 01, 2015 4:28 am

Re: ssh command error

Tue Sep 01, 2015 12:20 pm

thanks for your replay


your mean is i can upload a key from another machine to my router

so anyone can upload one key for download ?

Thank Alot
 
User avatar
bajodel
Long time Member
Long time Member
Posts: 552
Joined: Sun Nov 24, 2013 8:30 am
Location: Italy

Re: ssh command error

Wed Sep 02, 2015 9:18 pm

/user ssh-keys import public-key-file=id_rsa.pub user=admin
Thanks for sharing

Who is online

Users browsing this forum: CyberaxIzh and 15 guests