SSH
Tools: dsh sshpass sshfs
Connect
ssh -o "UserKnownHostsFile=/dev/null" -o StrictHostKeyChecking=no
Generate public key from private
ssh-keygen -f id_rsa -y > id_rsa.pub
Generate fingerprint
Forward to local port (-L)
ssh user@remote-host -L [local-port]:[ip-remote-network]:[port-on-ip-remote-network]
# examples
ssh [email protected] -L 10080:127.0.0.1:80
ssh [email protected] -L 10080:192.168.1.222:80
Forward to remote port (-R)
# syntax
ssh user@remote-host -R [remote-port]:[local-ip]:local-port]
# example 1
ssh [email protected] -R 10143:192.168.1.100:143
SSH proxy
ssh -D [bind_address]:[port] [user]@[host]
# example
ssh -D 0.0.0.0:8080 [email protected]