2017-04-10 1 views
1

Raspberry Pi에 대한 암호없는 액세스를 설정할 수 없습니다. 이 비슷한 지침을 사용하고 있습니다. one. 그러나 나는 암호를 묻는 때 나는 아직도ssh 내 산딸기. 나는 다른 서버로 이것을 만들었고 모든 것이 괜찮 았지만 내 라스베리 (양쪽 모두)는 그렇지 못했다. Jakuje에ssh를 통한 raspberry pi에 대한 암호없는 액세스

감사합니다, 조금 더 명확하게 :

성공적으로 디버그 로그 :

debug1: Offering RSA public key: /home/tmp/.ssh/id_rsa 
debug3: send_pubkey_test 
debug3: send packet: type 50 
debug2: we sent a publickey packet, wait for reply 
debug3: receive packet: type 60 
debug1: Server accepts key: pkalg ssh-rsa blen 535 
debug2: input_userauth_pk_ok: fp SHA256:XPQA6tgcRCam/L18YP4ccPwsOsGtO65ippi7kua4mTM 
debug3: sign_and_send_pubkey: RSA SHA256:XPQA6tgcRCam/L18YP4ccPwsOsGtO65ippi7kua4mTM 
debug3: send packet: type 50 
debug3: receive packet: type 52 
debug1: Authentication succeeded (publickey). 

로그 실패 :

debug1: Offering RSA public key: /home/tmp/.ssh/id_rsa 
debug3: send_pubkey_test 
debug3: send packet: type 50 
debug2: we sent a publickey packet, wait for reply 
debug3: receive packet: type 51 
debug1: Authentications that can continue: publickey,password 
debug1: Trying private key: /home/tmp/.ssh/id_dsa 
debug3: no such identity: /home/tmp/.ssh/id_dsa: No such file or directory 
debug1: Trying private key: /home/tmp/.ssh/id_ecdsa 
debug3: no such identity: /home/tmp/.ssh/id_ecdsa: No such file or directory 
debug1: Trying private key: /home/tmp/.ssh/id_ed25519 
debug3: no such identity: /home/tmp/.ssh/id_ed25519: No such file or directory 
debug2: we did not send a packet, disable method 
debug3: authmethod_lookup password 
debug3: remaining preferred: ,password 
debug3: authmethod_is_enabled password 
debug1: Next authentication method: password 

을가 id_rsa 키를 무시하고 id_dsa을 요청 왜? ?

+0

작동시키기 위해 어떤 단계를 밟았습니까? 디버그 로그는 어떻게 생겼습니까? 그 중 하나가 없으면 대답 할 수 없습니다. – Jakuje

+0

지침에 대한 링크가 게시물에 있습니다. 나는 그들을 수행하고 PI는 여전히 비밀번호를 묻습니다. 어떤 로그가 필요합니까? 어떤 명령을 실행해야합니까? 나는 당신에게 줄 것이다 - 문제 없음 –

+0

'ssh -vvv raspberry-ip' – Jakuje

답변

2
debug1: Offering RSA public key: /home/tmp/.ssh/id_rsa 
debug3: send_pubkey_test 
debug3: send packet: type 50 
debug2: we sent a publickey packet, wait for reply 
debug3: receive packet: type 51 
debug1: Authentications that can continue: publickey,password 

은 키를 시도했지만 서버에서 수락하지 않는다고 말합니다. 서버 구성/사용 권한에 문제가 있습니다. 디버그 모드에서 서버를 실행하면 문제가있는 위치를 식별 할 수 있습니다. 홈 디렉토리의 소유자 및 사용 권한 인 .ssh 디렉토리는 다음과 같아야합니다.

chmod g-w /home/your_user 
hmod 700 /home/your_user/.ssh 
chmod 600 /home/your_user/.ssh/authorized_keys 
+0

예, 이것이 제 경우 인 http입니다. : //www.daveperrett.com/articles/2010/09/14/ssh-authentication-refused/ –