ssh Tunnel

From GM-RKB
Jump to navigation Jump to search

An ssh Tunnel is a communication channel using SSH Tunneling Protocol.

  • Example(s):
    • $ Remote_Host=ec2-54-211-23-27.compute-1.amazonaws.com
      $ SSH_Tunnel_Port=8192
      $ Remote_Host_Port=8192
      $ ssh -vvv -o ServerAliveInterval=10 -i ~/.ssh/GM-RKB.pem -N -L ${SSH_Tunnel_Port}:${Remote_Host}:${Remote_Host_Port} hadoop@${EMR_Master}
    • $ ssh -i ~/GM-EMR.pem -ND ${SSH_Tunnel_Port} hadoop@${Remote_Host} # Dynamic ssh tunneling.
  • Counter-Example(s):
  • See: ssh, scp.