0
내 회사의 누군가가 약간의 혼란을 일으켰으며 인스턴스에 대한 일부 권한으로 재생되었습니다. 나는 그것들을 복구 할 수 있다고 생각하지만, 나는 SSH를 통해 연결할 수 없다. 내 .ssh 폴더 및 파일에 대한 사용 권한을 제안함에 따라 모든 문서가 변경된 것을 보았습니다. 그러나 아직 succses가 없습니다.AWS EC2 Instace가 ssh에 연결할 수 없습니다.
이 디버그에서 볼 수있는 것이다 :
debug1: Host '[ec2-35-158-36-123.eu-central-1.compute.amazonaws.com]:922' is known and matches the RSA host key.
debug1: Found key in /home/mobaxterm/.ssh/known_hosts:33
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: mobilePortalDev.pem (0x0), explicit
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic
debug3: preferred hostbased,publickey,password,keyboard-interactive
debug3: authmethod_lookup publickey
debug3: remaining preferred: password,keyboard-interactive
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: mobilePortalDev.pem
debug3: sign_and_send_pubkey: RSA SHA256:q1Dv2WPu+7ivOPemq0J1zaZdLyekni8URMGn1+zo7Aw
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
을 난 단지 키 인증을 useing하고있다. 잠긴 상태이거나 쓰기 가능하지 않은 것 같아서 키를 얻을 수 없습니다.
택시 도우미?
당신이 ~/스푸핑에 대한 사용 권한이 보는 무엇을 공유 할 수 있습니다
/home/username/.ssh/authorized_keys을 authorized_key 파일에 공개 키를 배치하고 사용자에 대한 그것에게 모든 권한을 부여하려고 했 처럼? 사용자 ID는 홈 폴더에 .ssh 폴더를 소유해야하며 폴더를 포함하는 폴더의 모든 파일에는 600 개의 사용 권한이 있어야합니다. 나는 인증 키가 이미 존재하고 누군가가 당신이 언급 한 허가를 가지고 놀았다고 가정하고있다. –