제 목 | ssh keygen 생성 | ||
---|---|---|---|
섬네일 | |||
내용 | > cd ~ > ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): [ENTER] Enter passphrase (empty for no passphrase): [ENTER] Enter same passphrase again: [ENTER] Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: aa:bb:11:5a:6d:66:76:ee:e2:4c:9b:5d:3d:db:68:f5 root@$HOSTNAME > cd .ssh > scp id_rsa.pub userAcc@userIP:.ssh/authorized_keys > ssh-copy-id userAcc@userIP > ssh userAcc@userIP(or Domain) [ 제대로 설정했는데 안될 경우 원격 서버의 폴드 설정] .ssh 폴드가 없을 경우 생성 >cd ~ > mkdir .ssh > chmod 700 .ssh authorized_keys 의 권한을 600으로 변경 > chmod 600 authorized_keys |
||
출처 | |||
참고URL | - | ||
작성일 | 2013-07-06 15:41 | 조회수 | 1359 |