SSH 공개 키 확인이 작동하지 않습니다

SSH 공개 키 확인이 작동하지 않습니다

비밀번호를 입력하지 않고 시스템 간에 SSH를 연결할 수 있도록 키를 설정했는데 모든 것이 한동안 잘 작동했지만 갑자기 일부 시스템에서 비밀번호를 입력하라는 메시지가 표시되었습니다. 키를 확인했는데 모든 것이 괜찮은 것 같습니다. ssh -v를 실행했는데 이것이 출력입니다. 제가 아는 한, 키는 성공적으로 확인되었는데 왜 비밀번호를 묻는 메시지가 표시되나요? ? ?

ssh XXX.XXX.XXX.XXX -v
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to XXX.XXX.XXX.XXX [XXX.XXX.XXX.XXX] port 22.
debug1: Connection established.
debug1: identity file /nethome/username/.ssh/identity type -1
debug1: identity file /nethome/username/.ssh/id_rsa type 1
debug1: identity file /nethome/username/.ssh/id_dsa type 2
debug1: loaded 3 keys
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
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'XXX.XXX.XXX.XXX' is known and matches the RSA host key.
debug1: Found key in /nethome/username/.ssh/known_hosts:43
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure.  Minor code may provide more information
No credentials cache found

debug1: Next authentication method: publickey
debug1: Trying private key: /nethome/username/.ssh/identity
debug1: Offering public key: /nethome/username/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Offering public key: /nethome/username/.ssh/id_dsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: password

그런데, 서버가 인증 메시지를 받아들이는 것을 볼 수 없습니다:

debug1: Server accepts key: pkalg ssh-rsa blen 277

~/.ssh/의 모드는 700입니다. ssh-copy-id를 실행해 보았더니 제대로 작동하는 것 같았습니다. 확실히 두 컴퓨터의 id_rsa.pub에서 md5sum을 실행했는데 둘 다 동일했습니다. 또한 대상 머신에 있는 Authorized_keys의 체크섬은 공개 키의 체크섬과 일치합니다(이것이 인증된 키 중 유일한 키이기 때문입니다).

답변1

.ssh뿐만 아니라 $HOME 권한도 중요하다는 것이 밝혀졌습니다! $HOME의 권한 설정은 751보다 높을 수 없습니다.

관련 정보