Official Laboratory Discussion

@synap5e said:

This is my first hackthebox :smiley:

I got a reverse shell and have given myself admin in the G***b and found the privkey , but I’m getting
Load key "***": invalid format despite file saying it’s OpenSSH private key

Is the privkey a red herring or am I doing something wrong with it? Just looking for a small hint.

EDIT: hmm well I managed to get it to work… but I have no idea why the step that I did was needed

Let me guess: You had to add a newline to the end of the file? For some reason, certain ssh clients require the key file to end with an empty line.