Hello,
in the Privilege escalation target machine I’ve copied id_rsa key, create a new file, pasted the id_rsa copied from the host machine. Then I performed chmod 600 id_rsa. Finally I am trying to use ssh root@hostip -p hostport -i id_rsa and I get the following error:
Load key "id_rsa": invalid format
I’ve seen similar examples like Topics tagged starting-point, the solution provided was to use puttygen, however, the puttygen command also throws an error that it’s not the private key. Checking the file using file id_rsa shows as OpenSSH private key.
I’ve checked multiple times, checked the size, characters count from the host machine and my current id_rsa - everything is fine.
Not sure what to do. Thanks.