I'm attempting to gain access to a web server using an SSH key.
I followed several steps to create my keys, had them uploaded and am still unable to connect.
In Git Bash (on Windows 8) I checked for existing keys:
ls -al ~/.ssh
When there were none, I created one with:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
I saved it in the default setting which seems to have been C:/home/.ssh, and I gave it a passphrase.
I was basically following the beginning of the github guide.
This generated me an id_rsa file and an id_rsa.pub file. The first was uploaded by the server administrator, and I'm attempting to log on now.
PuTTY can't use the id_rsa key as it is ("Unable to use key file (OpenSSH-2 private key)"), so I converted it using puttygen to pvtky.ppk.
I then just see "login as:", without the key error, but can't log in with anything.
I'm not asking asking for help in conjuring up a login, just trying to understand if my process was correct, as I expect it really wasn't, and if what I'm seeing is expected at this point.
EDIT: PuTTY raw errors:
Event Log: Reading private key file "C:\home.ssh\pvtky.ppk"
Event Log: Pageant is running. Requesting keys.
Event Log: Pageant has 0 SSH-2 keys
Event Log: Configured key file not in Pageant
Event Log: Offered public key
Event Log: Server refused our key
Event Log: Disconnected: No supported authentication methods available (server sent: publickey)
id_rsa.pub
. And you actually do not upload it, but rather put a fingerprint of it toauthorized_keys
file. But I hope your administrator knows.