Reputation: 3
I had follow the steps given in so many docs like this one, after creating a key i pasted it in my GITHUB account>account settings>SSH key. When I add it there it shows a message:" key is invalid".
Upvotes: 1
Views: 3136
Reputation: 1327164
I really don't link the tutorial part which mentions:
Save the private key somewhere with a passphrase and then copy the public key text to the clipboard.
"somewhere"? ssh keys must be saved in %HOME%\.ssh
.
(Note: %HOME%
doesn't exists in windows, and default to %USERPROFILE%
)
Make sure to have your public and private keys saves in:
%USERPROFILE%\.ssh\id_rsa
%USERPROFILE%\.ssh\id_rsa.pub
set HOME=%USERPROFILE%
plink [email protected]
Upvotes: 1