I’ve managed to get myself completely stuck on the last part of the Privilege Escalation in the HTB Academy.
All signs point towards getting hold of the users id_rsa, copy and chmod, and then ssh in with the copied credentials. However when I do this I’m asked for a password and that’s as far as I can get.
I did notice something though, when I was doing a very similar task on TryHackMe, I copied over the contents of the id_rsa, and pasted them into a blank document via the file manager. When I saved the file, the icon changed to a key (which says to me that linux has recognised it as an ssh key), but when I do the same procedure in the HTB instance, it stays as a generic text file, suggesting that it’s not recognised as a key, and that would be why the password is still asked for.
I have absolutely no idea how to get round this issue, so any help would be appreciated!
P.S There is a Reddit thread on this topic https://www.reddit.com/r/hackthebox/comments/mnphm3/htb_academy_getting_started_privilege_escalation/ , but it hasn’t helped so far