I have generated a public key file (id_rsa.pub) and a private key file (id_rsa) and placed them in my ~/.ssh folder
According to the server admin, he has already added "my key" to the server for accessing it.
Could someone please clarify :
when he says he has added my "key". Is that the public key that he has added or private key ? I was under the impression that private keys are not supposed to be distributed but only public keys are supposed to be sent. Then why did the server admin ask for my private key ?
I tried connecting to the server using an ~/.ssh/config file with the entry for IdentityFile as the id_rsa key (private key). I got an error as follows :
Permission denied (publickey).Does this mean it was hoping i'd send a public key rather than a private key ?
Is it possible to identify public keys and private keys by merely looking at them ? Are they of specific lengths ?