I tunneled data transition as 22-22
and 2222-80
, between my PC and VPS:
ssh user@1.1.1.1 -L 22:localhost:22 -L 2222:localhost:80 -i ~/.ssh/key
To make sure both tunnels were created, I executed lsof -i -n -P | grep ^ssh
after logging in to the server.
Here is the stdout. You can see that only port 22
is present, without 2222
:
sshd 1785 root 3u IPv4 17568 0t0 TCP *:22 (LISTEN)
sshd 1785 root 4u IPv6 17570 0t0 TCP *:22 (LISTEN)
sshd 31511 root 3u IPv4 447661 0t0 TCP SERVER_IP:ssh->ISP-acronym-LOCAL_IP.ISP-subdomain.ISP-domain:52086 (ESTABLISHED)
My question:
My question can actually be comprised of the following 2 questions:
What might have went wrong so that only a
22
tunnel appears, but no2222
tunnel? Please advise me what's worth checking in my system and I will update this question.What is this IPV6 there in the second column? Neither my PC, nor my VPS, has a IPV6 IP.
Notes:
- The system I tunnel from is WSL Ubuntu. Very basic; A fresh install with no utilities installed besides fail2ban. I just login with the already existing OpenSSH and that's basically it.