Port Forwarding
# 443 will be forwarded to the remote host 127.0.0.1 port 8080 port
# Can be forwarded within the network port out
# -P 2234 represents the remote server SSH port
ssh -N -f -p 2234 -R 8080:127.0.0.1:443 [email protected]
Socks5 proxy
# SSH dynamic port forwarding, is equivalent to set up a local computer Socks5 proxy to forward traffic on the local computer to a remote server SSH port
# Then set socks5 proxy in the browser can be realized "over the wall" online
# -P 2234 represents the remote server SSH port
ssh -Nf -D 0.0.0.0:1080 -p 2234 [email protected]