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그런 다음 호스트 이름으로 사용하십시오 .

관련 정보