ssh command error

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

That is not a RouterOS command. Where are you connected to?

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

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

Thanks for sharing