Changes

Jump to navigation Jump to search
1 byte removed ,  09:26, 5 April 2016
Line 30: Line 30:  
== ssh tunneling ==
 
== ssh tunneling ==
 
This is used for example to connect to a database on a server that has the database port closed but ssh port open.<br />
 
This is used for example to connect to a database on a server that has the database port closed but ssh port open.<br />
*ssh -N -L localport:remotehost:remoteport remoteuser@remotehost
+
ssh -N -L localport:remotehost:remoteport remoteuser@remotehost
  *ssh ip_maq_intermedia -L puerto_local_kali:ip_destino_real:puerto_remoto
+
  ssh ip_maq_intermedia -L puerto_local_kali:ip_destino_real:puerto_remoto
 
Example:
 
Example:
 
  ssh -i .ssh/MySshKey.pem -N -L 8888:localhost:3306 ubuntu@myserver.com
 
  ssh -i .ssh/MySshKey.pem -N -L 8888:localhost:3306 ubuntu@myserver.com

Navigation menu