SSH Problem

Hello friends,
I am slowly despairing. I’ve been active on HTB Academy for over 6 months and have never had any problems with ssh connecting to the labs. I use my own Attacker machine.

For a few days, however, I can no longer connect to a service on the HTB using ssh. No matter which lab. I always get the answer: Connection closed by HTB_IP port 22. But it works with the HTB Pawn-Virtual-Machine.

I checked the following:

  • VPN connection ok
  • Trace route ok
  • PING ok
  • Disable Firewall
  • new installed ssh service on linux

Please, if anyone has an idea, I would be very grateful.

contact the support.

I contacted the support, by they said the Problem is by my side. They dont have a Hint to solve that issue

Tried reinstalling your VM?

I dont use a VM

i could try to help. if you want to talk on discord shoot me your discord

Does anybody solve this problem ? I have the same issue I could not connect to any of machine.

Hello Krp0.

Are you still experiencing this issue?

If so, can you provide some more detail to your scenario?

What troubleshooting have you already performed?

Thank you,

DotDragon

Hi DotDragon,

I solved the issue by downloading VPN file but not with UDP connection but with TCP. I have no idea why this was problem with UDP … because all checks passed but when I tried conenction to some machine I saw in logs that connection was established but then after 1-2 minutes it was refused by server themselve.

2 Likes

Often times UDP connections are not as stable as TCP. There also may be the possibility of rejection of UDP traffic to the server(doubtful but I still like to propose potential scenarios).

I’m glad you were able to solve it though!

Cheers and happy hunting!

DotDragon

Cheers, that solved my connection as well!

I had the same problem. If you use ssh -v USER@IP then you can see what ssh does. For me the last message was “expecting SSH2_MSG_KEX_ECDH_REPLY”. I had to change the network interface MTU. For me worked: “sudo ifconfig tun0(Network Interface you want to modify for me tun0) mtu 1200” but for some worked 1400 instead of 1200. Maybe a different number works for you. Hope that helps :grinning: