로컬 네트워크에서 액세스 할 수없는 호스트 A가 있습니다. 하지만 SSH와를 통해 액세스 할 수있는 호스트 B는 그래서 설치 SSH를 터널 내 ~/스푸핑/설정이직접 연결할 수없는 원격 호스트에 대한 SSH
과 같은ssh -N -D 7070 [email protected]_B
B를 통해 액세스 A를 시도 B. 에 볼 수있다
host HOST_A
ProxyCommand socat - PROXY:127.0.0.1:7070:%h:%p,proxyport=7070
나는 다음과 같은 명령을
ssh -v [email protected]_A
를 실행 나는 다음과 같은 오류가 발생했습니다.
debug1: identity file /Users/leo/.ssh/id_rsa type -1
debug1: permanently_drop_suid: 501
debug1: identity file /Users/leo/.ssh/id_rsa-cert type -1
debug1: identity file /Users/leo/.ssh/id_dsa type 2
debug1: identity file /Users/leo/.ssh/id_dsa-cert type -1
2013/05/21 22:19:13 socat[4537] E proxy_connect: connection closed by proxy
ssh_exchange_identification: Connection closed by remote host
내 컴퓨터에는 /etc/hosts.allow 또는 /etc/hosts.deny가 없습니다. mac OS를 사용 중입니다.
로컬 호스트에서 B, 그리고 B에서 A로 이동하려는 것 같습니다. 그렇다면 항상'ssh -t B ssh A'를 쓸 수 있습니다. – demure