PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli

⇐ retour index

SSH through HTTP proxy

mercredi 18 mars 2015 à 10:16
Les Liens de Memiks 18/03/2015
Comment se connecter en SSH à un serveur en passant par un proxy ?

et bien il faut tout d'abord passer par le port 443 (voir sslh ...)

puis dans .ssh/config :
## Outside of the firewall, with HTTPS proxy
Host serveur_ssh_sur_port_443
 ProxyCommand connect -H proxy_host:proxy_port %h 443

## Inside the firewall (do not use proxy)
Host *
  ProxyCommand connect %h %p

# pour utiliser git@github.com:
Host github.com
 ProxyCommand=ssh serveur_ssh_sur_port_443 "/bin/nc -w1 %h %p"

et voila !
(Permalink)