Linux で一部のサーバーのみに SSH プロキシを設定する

Linux で一部のサーバーのみに SSH プロキシを設定する

私は、http://returnbooleantrue.blogspot.com/2009/06/using-github-through-draconian-proxies.htmlしかし、内部サーバーへの接続は失敗します。

Proxy could not open connnection to 192.168.1.***:  Forbidden
ssh_exchange_identification: Connection closed by remote host
svn: Commit failed (details follow):
svn: Network connection closed unexpectedly

ssh.github.com にのみ使用されるconfigようにファイルを設定できますか?ProxyCommand

答え1

そうです。その指示を別のHost節に置きます。

Host github-external
    HostName ssh.github.com
    ProxyCommand dosomethinghere

次にgithub-externalホスト名として使用します。

関連情報