SSH durch Proxy auf beliebigen Ports

Manchmal hat man die Situation, dass man hinter einem HTTP-Prox sitzt und mit ssh nicht rauskommt. Dann hilft es, ssh auf einem alternativen port zu legen.

Installation

apt-get install ssh
apt-get install connect-proxy

Konfiguration

Datei /etc/ssh/ssh_config

in diesem Fall nehmen wir an, dass der Proxy auf Port 8080 lauscht und port 443 benutzt werden soll.

host <hostname>
     ProxyCommand connect-proxy -H <proxy>:8080 %h 443

host <ip-adress>
     ProxyCommand connect-proxy -H< proxy>:8080 %h 443