Herramientas de usuario

Herramientas del sitio


wiki2:ssh

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:ssh [2022/05/16 08:15]
alfred [Tunnels, port mapping table]
wiki2:ssh [2022/05/25 07:38] (actual)
Línea 200: Línea 200:
 the same as myserver. To make that transparent you should add an entry to the hosts file. If you don'​t ​ the same as myserver. To make that transparent you should add an entry to the hosts file. If you don'​t ​
 do that vhosts will not work. If you want a SOCKS-proxy connection you could also use do that vhosts will not work. If you want a SOCKS-proxy connection you could also use
 +
 $ ssh -D 5000 user@myserver $ ssh -D 5000 user@myserver
 This will create a SOCKS-proxy on localhost port 5000 which routes all requests through myserver. This will create a SOCKS-proxy on localhost port 5000 which routes all requests through myserver.
Línea 233: Línea 234:
 ^ Command ^ Meaning ^ ^ Command ^ Meaning ^
 | ssh -L 8000:​127.0.0.1:​8000 dev | You are mapping the port 8000 from the ''​dev''​ host to localhost, port 8000. Now you can connect to ''​localhost:​8000''​ and ''​dev:​8000''​ will respond. | | ssh -L 8000:​127.0.0.1:​8000 dev | You are mapping the port 8000 from the ''​dev''​ host to localhost, port 8000. Now you can connect to ''​localhost:​8000''​ and ''​dev:​8000''​ will respond. |
 +| ssh -L 8000:​127.0.0.1:​8000 -L 5432:​127.0.0.1:​5432 dev | You are mapping the port 8000 and 5432 from the ''​dev''​ host to localhost, both on the same portport 8000. As previous but two. |
 | ssh -R 8000:​127.0.0.1:​8000 shappsrv | You are mapping the port 8000 from ''​localhost''​ to the ''​shappsrv''​ host. When a request arrives to ''​shappsrv:​8000''​ it will be redirected to ''​localhost:​8000''​. | | ssh -R 8000:​127.0.0.1:​8000 shappsrv | You are mapping the port 8000 from ''​localhost''​ to the ''​shappsrv''​ host. When a request arrives to ''​shappsrv:​8000''​ it will be redirected to ''​localhost:​8000''​. |
 +| ssh -D 1337 -q -C -N webapps | You are creating a SOCKS5 proxy in local host to ''​webapps'',​ port 1337. It will make any connection done to this port to outside as it was from webapps. |
 +
 +Parameters:
 +
 +  * ''​-q''​ Quiet mode. No errors or warnings will be shown.
 +  * ''​-C''​ Compress communication.
 +  * ''​-N''​ Do not execute a command.
  
  
wiki2/ssh.1652688919.txt.gz · Última modificación: 2022/05/16 09:15 (editor externo)