2017-11-09 22 views
0

마스터 gpdb 호스트에서 datanode 중 하나를 ssh (greenplum 시스템 사용자)로 시도 할 때.GPDB : SSH 권한이 거부 됨 (공개 키)

ENV - gpdb 4.3.10

얻기 오류

[gpadmin @ MDW ~] $ SSH를 데이터 노드

거부 ​​권한 (공개 키, GSSAPI - keyex, GSSAPI -와 - 마이크) . 는 [gpadmin @ 자벽 ~] $

WE 시도 또한 데이터 노드/마스터 호스트 중 하나 SSH 할 노드를하지 관찰 피봇 문서 https://discuss.pivotal.io/hc/en-us/articles/203777546-gpssh-exkeys-Fails-with-Error-Permission-denied-During-Local-Key-Exchange

입어.

**Here is verbose mode -v with SSH info** 

debug1: Host 'datanode01' is known and matches the ECDSA host key. 
debug1: Found key in /home/gpadmin/.ssh/known_hosts:3 
debug1: ssh_ecdsa_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 
debug1: Next authentication method: gssapi-keyex 
debug1: No valid Key exchange context 
debug1: Next authentication method: gssapi-with-mic 
debug1: Unspecified GSS failure. Minor code may provide more information 
No Kerberos credentials available 
debug1: Unspecified GSS failure. Minor code may provide more information 
No Kerberos credentials available 
debug1: Unspecified GSS failure. Minor code may provide more information 
debug1: Unspecified GSS failure. Minor code may provide more information 
No Kerberos credentials available 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /home/gpadmin/.ssh/id_rsa 
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic 
debug1: Trying private key: /home/gpadmin/.ssh/id_dsa 
debug1: Trying private key: /home/gpadmin/.ssh/id_ecdsa 
debug1: Trying private key: /home/gpadmin/.ssh/id_ed25519 
debug1: No more authentication methods to try. 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic) 
+0

해당 피벗 문서를 다시 시도합니다. 문제를 해결하는 방법을 올바르게 안내합니다. –

+0

물론입니다. 한번 더 해보려합니다. 동일한 링크 나는 여기에 게시 –

+0

난 그냥 해봤 어. 여전히 동일한 오류가 발생했습니다 –

답변

0

문제는 루트 로그인이 아니라 해당 설명서에서 제안하는 것처럼 보이지만 암호 인증은 사용할 수 없습니다. 이 작업을 모든 노드에서 실행 해보십시오.

sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 
sudo service sshd restart 
echo "gpadmin:changeme" | sudo chpasswd 

그런 다음 gpssh-exkeys를 gpadmin으로 다시 시도하십시오.

gpssh-exkey -f all_hosts 

키를 교환 한 후 암호 인증을 다시 비활성화 할 수 있습니다.

sudo sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config