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_rsadebug3: send_pubkey_testdebug3: send packet: type 50debug2: we sent a publickey packet, wait for replydebug3: receive packet: type 51SSH CONFIG FILE (IDENTITY SECTION)root@etoorlan4c:~/.ssh# cat /etc/ssh/ssh_config#   StrictHostKeyChecking ask#   IdentityFile ~/.ssh/identity#   IdentityFile ~/.ssh/id_rsaCONTENTS OF ~/.ssh/root@etoorlan4c:~/.ssh# lsauthorized_keys  id_rsa  id_rsa.pub  known_hosts
SSH: Why is my system offering my private key when attempting public key authentication?
ssh
The private key was invalid. A single character was missing from it.The output changes as follows when a valid private key is used:debug1: Offering RSA public key: root@etoorlan4cdebug3: send_pubkey_testdebug3: send packet: type 50debug2: we sent a publickey packet, wait for replydebug3: receive packet: type 51debug1: Authentications that can continue: publickey,passworddebug1: Trying private key: sshkey.privatedebug3: sign_and_send_pubkey: RSA SHA256:jmMyCOppv3KKkRgiHI4s5h3I7LwyCgms8uSG06KClQ4debug3: send packet: type 50debug2: we sent a publickey packet, wait for replydebug3: receive packet: type 52debug1: Authentication succeeded (publickey).Authenticated to [remoteHost]([xxx.xxx.xxx.xxx]:22).