Trying to connect to a server. I've received a private key to login to that server which I added to id_rsa. However the client keeps attempting to pass that as the public key instead of id_rsa.pub. Is this because id_rsa.pub isn't in my ssh_config file?
SERVER CONNECTION ATTEMPT
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
SSH CONFIG FILE (IDENTITY SECTION)
root@etoorlan4c:~/.ssh# cat /etc/ssh/ssh_config
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
CONTENTS OF ~/.ssh/
root@etoorlan4c:~/.ssh# ls
authorized_keys id_rsa id_rsa.pub known_hosts
ssh-keygen -i
returnsuudecode failed.
which the IBM site says means the key file is incorrect. I'm skeptical of the error because if I run ssh-keygen to make a new keypair, ssh-keygen -i still throws an error:Enter file in which the key is (/root/.ssh/id_rsa): decode blob failed: invalid format
debug1: identity file
further up in your connection log to see if ssh recognizes it.debug1: identity file /root/.ssh/id_rsa type 1
there's no mention anywhere in these connection logs of id_rsa.pubOffering RSA public key: /root/.ssh/id_rsa
means that it is offering the public key that it gets from your private key file.