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.
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.
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 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