HTB Academy - Skills Assessment, Service Login (Hydra)

Hello all,

I am working on the service login assessment and I’m running into an issue where google has been less than useful.
I’ve formulated the syntax to look something like this:
hydra -l *****.txt -p ******.txt -u -f ssh://255.255.255.255 -t 4
the ***** lists were generated using username-anarchy and cupp. I ran the commands to shorten the password list as well.
However, when running the command, I keep getting an error that the target does not support password authentication (method reply 4).
When I try to ssh in to the target directly with user@IP or test@IP I get a kickback about a public key. I feel like I recall something about generating public keys for this purpose at some point in my journey, but it has been some time since I’m afraid.

I’m not asking for any real answers, but the slightest clues would be greatly appreciated.

1 Like

Having this issue myself. Have you figured it out yet?

port 22 is used by hydra as the default port to brute force the ssh. We should use the port provided along with the target system. It took me a while to figure it out.

hydra -l b.gates -P william.txt -u -f ssh://94.237.54.176:36565