
id_rsa.pub
방금 로컬 디렉토리에 존재하는 경우 명령 ~/.ssh
으로 원격 서버에 연결할 수 없다는 것을 알았습니다 ssh
.
하지만 왜 그런지 모르겠습니다. 공개키가 비밀키와 같은 곳에 존재하면 보안에 위험할까요?
ssh
그리고 옵션을 사용하여 명령을 실행하더라도 공개 키를 여기에 배치하면 안 된다는 오류가 발생하지 않습니다 -v
.
왜 공개 키를 넣으면 안 되나요 ~/.ssh/
?
ssh
옵션 이 포함된 로그 의 일부입니다 -v
. ssh
Cygwin 환경에서 사용하고 있습니다 .
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/ironsand/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Trying private key: /home/ironsand/.ssh/id_dsa
debug1: Trying private key: /home/ironsand/.ssh/id_ecdsa
debug1: Trying private key: /home/ironsand/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).