Created
October 16, 2017 20:30
-
-
Save bluebycode/8893abaed31c0526dc9574f712f69220 to your computer and use it in GitHub Desktop.
Acceder por SSH (Linux o Mac ) bajo un proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Corkscrew (https://github.com/elia/corkscrew) es una herramienta que permite redirigir mediante un tunel | |
# las conexiones por SSH (OpenSSH) a traves de un proxy HTTP: | |
# Bajar una compilación hecha (o compilar desde la ubicación de github del proyecto) y guardar | |
# en local como /usr/local/bin/corkscrew | |
$ wget https://github.com/vrandkode/lzfport/blob/master/corkscrew | |
$ chmod a+x corkscrew | |
$ sudo cp corkscrew /usr/local/bin/corkscrew | |
# Editar el fichero ~/.ssh/config añadiendo las siguientes líneas: | |
Host * | |
ProxyCommand /usr/local/bin/corkscrew proxy.wifi.uma.es 3128 %h %p | |
# Acceder a traves de ssh para realizar la prueba: | |
$ ssh -i ~/.ssh/myprivatekey.pem ec2-user@ec2-xxx-xxx-xxx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment