SSH
Local Port Forwarding
ssh -f -N -L 2049:127.0.0.1:2049 megan@10.1.1.27
# -f: run as background
# -N: not to execute any command after connecting to the target
# -L: local port fowarding settings <Local port>:<remote host>:<remote port>
ssh -L 8888:127.0.0.1:8080 aeolus@192.168.142.213Remote Port Forwarding
# @Kali (192.168.119.128)
sudo systemctl start ssh
# @Target (10.1.1.200 and 10.5.5.200)
ssh -f -N -R 1122:10.5.5.11:22 -R 13306:10.5.5.11:3306 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i /tmp/k/id_rsa iptracej@192.168.119.128
# -f: run as background
# -N: not to execute any command after connecting to the target
# -R: remote port fowarding settings <Remote port>:<Target host>:<Target port>
# -o: This effectively disables host key checking, which can be a security risk
# -i: the location of the private key file to be used for authenticationRemote Dynamic Port Forwarding and Double Pivoting
Local Dynamic Port Forwarding and Double Pivoting
Last updated