{"id":3034,"date":"2014-02-21T00:32:28","date_gmt":"2014-02-20T15:32:28","guid":{"rendered":"http:\/\/pchero21.com\/?p=3034"},"modified":"2014-02-21T00:32:28","modified_gmt":"2014-02-20T15:32:28","slug":"ssh-private-key-copy","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=3034","title":{"rendered":"ssh private key copy"},"content":{"rendered":"<p>ssh \uac1c\uc778\ud0a4 \uc815\ubcf4\ub97c \uc811\uc18d\ud558\ub294 \uc11c\ubc84\uc5d0 \ubcf5\uc0ac\ub97c \ud558\uac8c \ub418\uba74, ssh \uc811\uc18d\uc2dc, \ubcc4\ub3c4\ub85c \ube44\ubc00\ubc88\ud638 \uc785\ub825\uc5c6\uc774 \uc811\uc18d\uc774 \uac00\ub2a5\ud574 \ud3b8\ub9ac\ud558\ub2e4.<\/p>\n<p>\uc544\uc9c1 ssh \uac1c\uc778\ud0a4\ub97c \uc0dd\uc131\ud558\uc9c0 \uc54a\uc558\ub2e4\uba74 \uc0c8\ub85c \uc0dd\uc131\ud558\uc790.<\/p>\n<blockquote><p>$ ssh-keygen<\/p><\/blockquote>\n<p>\uc774\ud6c4, ~\/.ssh \ub514\ub809\ud1a0\ub9ac\uc5d0 \uac1c\uc778\ud0a4\uc640 \uacf5\uac1c\ud0a4 \ud30c\uc77c\uc774 \uc0dd\uc131\ub418\ub294 \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n<blockquote><p>pchero@MyGalaxy:~\/.ssh$ ls<br \/>\nid_rsa\u00a0 id_rsa.pub\u00a0 known_hosts<\/p><\/blockquote>\n<p>id_rsa \ud30c\uc77c\uc774 \uac1c\uc778\ud0a4 \ud30c\uc77c\uc774\uace0, id_rsa.pub \ud30c\uc77c\uc774 \uacf5\uac1c\ud0a4 \ud30c\uc77c\uc774\ub2e4. ssh \ud1b5\uc2e0\uc5d0\uc11c \uac1c\uc778\ud0a4 \ud30c\uc77c\uc740 \uc804\uc790 \uc0c1\uac70\ub798\uc5d0\uc11c\uc758 \uacf5\uc778 \uc778\uc99d\uc11c\uc774\ub2e4. \uc798 \ubcf4\uad00\ud558\uc790.<\/p>\n<p>&nbsp;<\/p>\n<p>\uc774\uc81c \uc0dd\uc131\ub41c \uacf5\uac1c\ud0a4 \ub0b4\uc6a9\uc744 \uc811\uc18d\ud558\uace0\uc790 \ud558\ub294 ssh \uc11c\ubc84\uc5d0 \uc785\ub825\ud574\uc918\uc57c \ud55c\ub2e4.\uc811\uc18d\ud558\uace0\uc790 \ud558\ub294 ssh \uc11c\ubc84 \uacc4\uc815\uc758 ~\/.ssh\/authorized_keys \ud30c\uc77c\uc5d0 \ub123\uc5b4\uc918\uc57c \ud55c\ub2e4.<\/p>\n<p>\ub9cc\uc57d \ud30c\uc77c\uc774 \uc5c6\ub2e4\uba74 \uc0c8\ub85c \uc0dd\uc131\ud558\uba74 \ub41c\ub2e4. \uacf5\uac1c\ud0a4 \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc740 \ubaa8\ub450 TEXT \uc774\ubbc0\ub85c \uc798 \uae01\uc5b4\uc11c \ub123\uc5b4\uc8fc\uc790.<\/p>\n<p>\uc774\ud6c4, \ud14c\uc2a4\ud2b8\ub85c ssh \uc811\uc18d\uc744 \ud574\ubcf4\uc790. \ube44\ubc00\ubc88\ud638 \uc785\ub825\uc5c6\uc774 \uc811\uc18d\uc774 \ub41c\ub2e4\uba74 \uc131\uacf5\uc774\ub2e4.\ub9cc\uc57d \ubaa8\ub450 \uc815\uc0c1\uc801\uc73c\ub85c \uc785\ub825\ud588\ub294\ub370\ub3c4 \uc2e4\ud328\ud55c\ub2e4\uba74, \ub2e4\uc74c\uc744 \ucc38\uace0\ud558\uc790.<\/p>\n<p>\ud544\uc790\uc758 \uacbd\uc6b0, \uc554\ud638 \uc5c6\uc774 ssh \uc811\uc18d\uc774 \uc548\ub418\uc5b4 ssh \ub85c\uadf8 \ud30c\uc77c\uc744 \uc0b4\ud3b4\ubcf4\ub2c8 \ub2e4\uc74c\uc758 \ub0b4\uc6a9\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc5c8\ub2e4.<\/p>\n<blockquote><p>Feb 17 17:44:29 stk-centos-6-x64-development sshd[5855]: Authentication refused: bad ownership or modes for file \/home\/pchero\/.ssh\/authorized_keys<br \/>\nFeb 17 17:44:36 stk-centos-6-x64-development sshd[5855]: Accepted password for pchero from 10.1.27.69 port 59982 ssh2<br \/>\nFeb 17 17:44:36 stk-centos-6-x64-development sshd[5855]: pam_unix(sshd:session): session opened for user pchero by (uid=0)<br \/>\nFeb 17 17:45:42 stk-centos-6-x64-development sshd[5861]: Received disconnect from 10.1.27.69: 11: disconnected by user<br \/>\nFeb 17 17:45:42 stk-centos-6-x64-development sshd[5855]: pam_unix(sshd:session): session closed for user pchero<br \/>\nFeb 17 17:46:49 stk-centos-6-x64-development sshd[5891]: Authentication refused: bad ownership or modes for file \/home\/pchero\/.ssh\/authorized_keys<br \/>\nFeb 17 17:46:50 stk-centos-6-x64-development sshd[5892]: Connection closed by 10.1.27.69<\/p><\/blockquote>\n<p>\ub0b4\uc6a9\uc778\uc989, authorized_keys \ud30c\uc77c\uc758 \ud37c\ubbf8\uc158\uc774 \uc62c\ubc14\ub974\uc9c0 \uc54a\ub2e4\ub294 \uac83. \ud574\ub2f9 \ud30c\uc77c\uc758 \ud37c\ubbf8\uc158\uc744 600 \uc73c\ub85c \ubc14\uafd4\uc8fc\ub2c8 \uc811\uc18d\uc774 \uc798 \ub418\uc5c8\ub2e4.<\/p>\n<p>\ub9cc\uc57d \uc704\uc758 \ubc29\ubc95\uc774 \ubcf5\uc7a1\ud558\ub2e4\uba74 \ub2e4\ub978 \ubc29\ubc95\ub3c4 \uc788\ub2e4.<\/p>\n<p>\uac00\uc7a5 \uc26c\uc6b4 \ubc29\ubc95\uc740 ssh-copy-id \ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774\ub2e4.<\/p>\n<blockquote>\n<pre><code>ssh-copy-id user@hostname.example.com<\/code><\/pre>\n<\/blockquote>\n<p>\uc774 \uba85\ub839\uc5b4 \ud558\ub098\uba74 \uc790\uc2e0\uc758 \uacf5\uac1c\ud0a4\uac00 \ubcf5\uc0ac\ub418\uace0, \uc774\ud6c4, \ube44\ubc00\ubc88\ud638 \uc5c6\uc774 ssh \uc811\uc18d\uc774 \uac00\ub2a5\ud574\uc9c4\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ssh \uac1c\uc778\ud0a4 \uc815\ubcf4\ub97c \uc811\uc18d\ud558\ub294 \uc11c\ubc84\uc5d0 \ubcf5\uc0ac\ub97c \ud558\uac8c \ub418\uba74, ssh \uc811\uc18d\uc2dc, \ubcc4\ub3c4\ub85c \ube44\ubc00\ubc88\ud638 \uc785\ub825\uc5c6\uc774 \uc811\uc18d\uc774 \uac00\ub2a5\ud574 \ud3b8\ub9ac\ud558\ub2e4. \uc544\uc9c1 ssh \uac1c\uc778\ud0a4\ub97c \uc0dd\uc131\ud558\uc9c0 \uc54a\uc558\ub2e4\uba74 \uc0c8\ub85c \uc0dd\uc131\ud558\uc790. $ ssh-keygen \uc774\ud6c4, ~\/.ssh \ub514\ub809\ud1a0\ub9ac\uc5d0 \uac1c\uc778\ud0a4\uc640 \uacf5\uac1c\ud0a4 \ud30c\uc77c\uc774 \uc0dd\uc131\ub418\ub294 \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4. pchero@MyGalaxy:~\/.ssh$ ls id_rsa\u00a0 id_rsa.pub\u00a0 &hellip; <a href=\"http:\/\/pchero21.com\/?p=3034\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[225,359,360],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/3034"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3034"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/3034\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3034"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}