Cannot connect to SSH

  1. Downloading the OpenVPN configuration file.
  2. I connect to OpenVPN via openvpn <conf_file>
    The tun0 interface appears:
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none 
    inet 10.10.16.25/23 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 dead:beef:4::1017/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::b010:c64b:226d:b340/64 scope link stable-privacy proto kernel_ll 
       valid_lft forever preferred_lft forever
  1. I’m trying to connect to ssh with username htb-student, password HTB_@cademy_stdnt!to the ip <ip> and I see (via ssh -vvv ...):
┌─[✗]─[root@parrot]─[~/.ssh]
└──╼ #ssh -vvv htb-student@<ip>
OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <ip> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to <ip> [<ip>] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address <ip> port 22: Connection timed out
ssh: connect to host <ip> port 22: Connection timed ou

What is the problem?

1 Like

Have you replaced the ip address in the command?

If I understood correctly, you mean, did I write the string <ip> instead of the real IP, then no

I connect to VPN with sudo command, did you tried to connect like this ?
“sudo openvp ~/Downloads/vpn_file” ?
If the problem stills , delete the file and download it again. Else check if you can connect with the PwnBox.

Perhaps because of my location, I couldn’t connect. I installed a vpn on the main host, and connected via openvpn tcp on a virtual machine and everything worked!

1 Like