편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
7번째 줄: | 7번째 줄: | ||
==실행예시 1== | ==실행예시 1== | ||
<source lang=' | <source lang='cli'> | ||
[root@zetawiki ~]# ssh-copy-id testuser@123.45.67.101 | [root@zetawiki ~]# ssh-copy-id testuser@123.45.67.101 | ||
testuser@123.45.67.101's password: | testuser@123.45.67.101's password: | ||
</source> | </source> | ||
:→ 원격서버 testuser의 패스워드 입력 | :→ 원격서버 testuser의 패스워드 입력 | ||
<source lang=' | <source lang='cli'> | ||
Now try logging into the machine, with "ssh 'testuser@123.45.67.101'", and check in: | Now try logging into the machine, with "ssh 'testuser@123.45.67.101'", and check in: | ||
22번째 줄: | 22번째 줄: | ||
==실행예시 2: sshpass와 조합 사용== | ==실행예시 2: sshpass와 조합 사용== | ||
<source lang=' | <source lang='cli'> | ||
[root@zetawiki ~]# sshpass -p"P@ssw0rd" ssh-copy-id testuser@123.45.67.102 | [root@zetawiki ~]# sshpass -p"P@ssw0rd" ssh-copy-id testuser@123.45.67.102 | ||
Now try logging into the machine, with "ssh 'testuser@123.45.67.89'", and check in: | Now try logging into the machine, with "ssh 'testuser@123.45.67.89'", and check in: |