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

Post your questions here, if you are not sure where you should.
Note: your post may be moved to appropriate forum by moderators.
India deepa11
Posts: 5
Joined: Wed Mar 24, 2021 1:18 pm

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

Post by deepa11 » Wed Mar 31, 2021 1:54 pm

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".

India aashish97
Posts: 117
Joined: Sat Jul 06, 2019 10:45 am

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

Post by aashish97 » Thu Apr 01, 2021 7:17 am

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

India deepa11
Posts: 5
Joined: Wed Mar 24, 2021 1:18 pm

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

Post by deepa11 » Thu Apr 01, 2021 8:56 am

putty.JPG
putty.JPG (48.58 KiB) Viewed 1628 times
Yes, you are right. Now my error is resolved.

Post Reply