인증 된 키를 사용하여 원격 서버에 SSH 로그인하는 데 문제가 있습니다. 내가받는 오류 메시지는 다음과 같습니다.
OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xx.xx.xx [xxx.xx.xx.xx] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /Users/bfenker/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
...
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /Users/bfenker/.ssh/id_rsa type 1
ssh_exchange_identification: Connection closed by remote host
이 사이트의 다른 질문들도 비슷한 질문을했으며 솔루션은 일반적으로 클라이언트 측의 모든 권한을 다시 확인하는 것이 었습니다.
drwxr-xr-x+ 23 bfenker staff 782 May 8 11:02 bfenker
drwx------ 8 bfenker staff 272 May 8 10:05 .ssh
-rw------- 1 bfenker staff 1675 May 8 09:51 id_rsa
-rw-r--r-- 1 bfenker staff 418 May 8 09:51 id_rsa.pub
-rw------- 1 bfenker staff 999 May 8 09:46 identity
-rw-r--r-- 1 bfenker staff 663 May 8 09:46 identity.pub
-rw-r--r-- 1 bfenker staff 416 May 8 09:06 known_hosts
인증 된 키를 사용하여 다른 서버로 SSH를 만들 수 있으며이 서버 SSH에서 원하는 서버로 SSH를 사용할 수 있습니다. 이것은 해결하려는 통과 가능한 해결 방법이지만 클라이언트와 서버가 모두 올바르게 설정되어 있음을 보여줍니다.
SSH를 다른 서버에 성공적으로 연결할 때 동일한 오류 메시지가 표시되지만 다음 줄부터 복구하는 것 같습니다.
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
왜 이것이 일부 경우에는 작동하지만 내가 원하는 경우에는 작동하지 않는지 알고 있습니까? 다른 제안은 대단히 감사하겠습니다!
/etc/hosts.allow와/etc/hosts.deny파일 을 변경 했습니까 ?