SSH
Get ssh info
Generate keys
Generate public key from private
Generate fingerprint
Found fingerprints
Connect
Don't save knownhosts
Connect through socks proxy
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
ssh -L '15001:[::1]:15001' 192.168.1.1
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]
Check speed for ssh connection
See more: pv
sshd config
cat << EOF > /etc/ssh/sshd_config.d/00-basic.conf
ChallengeResponseAuthentication no
PasswordAuthentication no
PermitRootLogin no
EOF
ssh user configs
Basic
Proxy