remote host를 ssh_known_hosts에 등록하는 방법

컴퓨터 2014. 11. 12. 09:16

remote host에 처음 ssh 접속을 하려고 하면

다음과 같은 메시지가 나온다.

 

$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 9a:02:26:5b:ad:e8:75:7a:31:3a:34:fc:e4:c6:8a:42.
Are you sure you want to continue connecting (yes/no)?

 

다음 명령을 실행해 주면 바로 ssh_known_hosts에 키(public key)를 등록해 준다.

 

sudo ssh-keyscan localhost >> /etc/ssh/ssh_known_hosts

 

참고:

Unknown hostkey
https://github.com/protobox/protobox/issues/78

 

'컴퓨터' 카테고리의 다른 글

[펌] 베스트 셀러 API만들기  (0) 2015.01.13
트위터 부트스트랩  (0) 2014.12.12
DevOps 툴 비교: Puppet, Chef, Slat, Ansible  (0) 2014.11.12
pip 자신 upgrade하기  (0) 2014.11.12
pip pandas 설치 에러  (0) 2014.11.07