Page 1 of 1

Putty: "ssh-rsa: command not found" error

Posted: Wed Mar 31, 2021 1:54 pm
by deepa11
I created key pair using puttygen.exe (local OS is windows 10). On Server (Ubuntu 20.04.2.0 LTS). When I try connecting I'm getting 'server refused our key' and server asks for password.
After entering the password set for the user in my server,
I entered the command: cat .ssh/authorized_keys, I am entering the public key generated. Then I get an error "ssh-rsa: command not found".

Re: Putty: "ssh-rsa: command not found" error

Posted: Thu Apr 01, 2021 7:17 am
by aashish97
Hello,
Their Might be a Wrong Command that you might have typed
What were you trying to accomplish?

usually their is no such command as `ssh-rsa`
You might have paste the `ssh-rsa FDFD<Public-Key>` on the Console By Mistake

Re: Putty: "ssh-rsa: command not found" error

Posted: Thu Apr 01, 2021 8:56 am
by deepa11
putty.JPG
putty.JPG (48.58 KiB) Viewed 1326 times
Yes, you are right. Now my error is resolved.