ssh

tunnel

tunnel through jump server

ssh -t L7070:localhost:7071 user@jumphost ssh -t -D7071 user@furtherhost
ssh -A -t -l user jump-host \
-L 8080:localhost:8080 \
ssh -A -t -l user webserver.dmz \
-L 8080:localhost:8080

open tunnel on port 443 (hide as https) - requires sudo background

sudo ssh -o ServerAliveInterval=60 -D443 -l pyratebeard -i ~/lib/key/ssh_tunnel -N -C -q -t -4 -f ftp.pyratebeard.net
  • -o ServerAliveInterval=60 -
  • -D443 -
  • -l pyratebeard -
  • -i ~/lib/key/ssh_tunnel -
  • -N - do not execute remote command
  • -C - compress data
  • -q - quiet
  • -t - force pseudo-terminal
  • -4 - use ipv4 only
  • -f - go to background

X11 forwarding

ssh -X user@host
  • on server side X11Forwarding must be set to yes in '/etc/ssh/sshd_config'

ref

ssh guide