Tuesday 21 August 2012

생성한 SSH Key를 다른 서버에 쉽게 적용하기


SSH에는 간단한 명령으로 다른 서버의 authorized_keys에 값을 넣어주는 명령어가 존재한다.

root@b.host.com에 id_rsa.pub 값을 전송하는 명령은 다음과 같다.
ssh-copy-id -i ~/.ssh/id_rsa.pub root@b.host.com

No comments:

Post a Comment