{"id":36,"date":"2025-03-25T08:17:53","date_gmt":"2025-03-24T23:17:53","guid":{"rendered":"https:\/\/wordpress.koseongnam.com\/?p=36"},"modified":"2025-03-25T08:21:09","modified_gmt":"2025-03-24T23:21:09","slug":"ssh-keygen-%eb%aa%85%eb%a0%b9%ec%96%b4%eb%9e%80","status":"publish","type":"post","link":"https:\/\/wordpress.koseongnam.com\/?p=36","title":{"rendered":"ssh-keygen \uba85\ub839\uc5b4\ub780?"},"content":{"rendered":"\n<p>ssh-keygen\uc740 SSH(Secure Shell) \uc811\uc18d\uc744 \uc704\ud55c \uc778\uc99d \ud0a4\ub97c \uc0dd\uc131\ud558\ub294 \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uacf5\uac1c\ud0a4\uc640 \uac1c\uc778\ud0a4 \uc30d\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc0dd\uc131\ub41c \ud0a4 \uc30d\uc740 \uc6d0\uaca9 \uc11c\ubc84\uc640\uc758 \uc548\uc804\ud55c \ud1b5\uc2e0\uc744 \ubcf4\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"%EC%82%AC%EC%9A%A9%EB%B2%95\">\uc0ac\uc6a9\ubc95<\/h1>\n\n\n\n<p>ssh-keygen \uba85\ub839\uc5b4\ub294 \ub2e4\uc591\ud55c \uc635\uc158\uacfc \ud568\uaed8 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uae30\ubcf8\uc801\uc73c\ub85c \uc544\ub798\uc640 \uac19\uc740 \ud615\uc2dd\uc744 \uac00\uc9d1\ub2c8\ub2e4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen &#91;\uc635\uc158]\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%EA%B8%B0%EB%B3%B8-%EC%82%AC%EC%9A%A9%EB%B2%95\">\uae30\ubcf8 \uc0ac\uc6a9\ubc95<\/h2>\n\n\n\n<p>\uc544\ubb34 \uc635\uc158 \uc5c6\uc774 ssh-keygen\uc744 \uc785\ub825\ud574\ub3c4 \uae30\ubcf8 RSA \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \ud0a4 \uc30d\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud130\ubbf8\ub110\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc740 \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud569\ub2c8\ub2e4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%EC%A7%84%ED%96%89-%EA%B3%BC%EC%A0%95\">\uc9c4\ud589 \uacfc\uc815<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\uc800\uc7a5\ud560 \ud30c\uc77c\uc758 \uc704\uce58<\/strong>\n<ul class=\"wp-block-list\">\n<li>\uba85\ub839\uc5b4\ub97c \uc785\ub825\ud558\uba74 \uc800\uc7a5\ud560 \ud0a4 \ud30c\uc77c\uc758 \uacbd\ub85c\ub97c \ubb3b\uc2b5\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c\u00a0<code>~\/.ssh\/id_rsa<\/code>\uc5d0 \uc800\uc7a5\ub429\ub2c8\ub2e4. Enter \ud0a4\ub97c \ub20c\ub7ec \uae30\ubcf8 \uc704\uce58\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\uc554\ud638 \uc124\uc815<\/strong>\n<ul class=\"wp-block-list\">\n<li>\uc774\ud6c4 \ud0a4\ub97c \ubcf4\ud638\ud558\uae30 \uc704\ud55c \uc554\ud638\ub97c \uc124\uc815\ud560 \uc218 \uc788\ub294 \uae30\ud68c\uac00 \uc8fc\uc5b4\uc9d1\ub2c8\ub2e4. \uc554\ud638 \uc5c6\uc774 \uc9c4\ud589\ud558\ub824\uba74 \uadf8\ub0e5 Enter \ud0a4\ub97c \ub204\ub985\ub2c8\ub2e4. \uc554\ud638\ub97c \uc124\uc815\ud558\uba74 \ud0a4\ub97c \uc0ac\uc6a9\ud560 \ub54c\ub9c8\ub2e4 \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%EC%98%B5%EC%85%98-%EC%82%AC%EC%9A%A9\">\uc635\uc158 \uc0ac\uc6a9<\/h2>\n\n\n\n<p>ssh-keygen\uc740 \uc5ec\ub7ec \uc635\uc158\uc744 \uc9c0\uc6d0\ud558\uc5ec \ud0a4 \uc30d\uc744 \uc0dd\uc131\ud558\ub294 \ubc29\uc2dd\uacfc \uc54c\uace0\ub9ac\uc998\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc8fc\uc694 \uc635\uc158\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-t<\/code>\u00a0: \uc0dd\uc131\ud560 \ud0a4\uc758 \ud0c0\uc785\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4(\uc608: rsa, dsa, ecdsa, ed25519 \ub4f1).<\/li>\n\n\n\n<li><code>-b<\/code>\u00a0: \ud0a4\uc758 \ube44\ud2b8 \uae38\uc774\ub97c \uc124\uc815\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4,\u00a0<code>-b 4096<\/code>\uc73c\ub85c 4096\ube44\ud2b8 \ud0a4\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%EC%98%88%EC%A0%9C\">\uc608\uc81c<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ed25519 \ud0a4 \uc0dd\uc131:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen -t ed25519 -C \"your_email@example.com\"\n<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>RSA \ud0a4 \uc0dd\uc131:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen -t rsa -b 4096 -C \"your_email@example.com\"\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%ED%82%A4-%EC%8C%8D-%EC%82%AC%EC%9A%A9\">\ud0a4 \uc30d \uc0ac\uc6a9<\/h2>\n\n\n\n<p>\uc0dd\uc131\ub41c \uacf5\uac1c\ud0a4\ub294 \uc11c\ubc84\uc5d0 \ucd94\uac00\ud558\uace0, \uac1c\uc778\ud0a4\ub294 \ub85c\uceec\uc5d0\uc11c \ubcf4\ud638\ud574\uc57c \ud569\ub2c8\ub2e4. \uacf5\uac1c\ud0a4\ub97c \uc11c\ubc84\uc758&nbsp;<code>~\/.ssh\/authorized_keys<\/code>&nbsp;\ud30c\uc77c\uc5d0 \ucd94\uac00\ud568\uc73c\ub85c\uc368 SSH \uc811\uc18d\uc744 \uc778\uc99d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"%EA%B2%B0%EB%A1%A0\">\uacb0\ub860<\/h1>\n\n\n\n<p>ssh-keygen \uba85\ub839\uc5b4\ub294 SSH\ub97c \ud1b5\ud55c \uc778\uc99d\uc744 \uc704\ud574 \ud544\uc218\uc801\uc778 \ub3c4\uad6c\ub85c, \uac04\ud3b8\ud558\uac8c \ud0a4 \uc30d\uc744 \uc0dd\uc131\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4<a href=\"https:\/\/handari.tistory.com\/entry\/ssh-keygen\" target=\"_blank\" rel=\"noreferrer noopener\">1<\/a><a href=\"https:\/\/docs.github.com\/ko\/authentication\/connecting-to-github-with-ssh\/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent\" target=\"_blank\" rel=\"noreferrer noopener\">2<\/a><a href=\"https:\/\/brunch.co.kr\/@sangjinkang\/52\" target=\"_blank\" rel=\"noreferrer noopener\">3<\/a><a href=\"https:\/\/ydeer.tistory.com\/298\" target=\"_blank\" rel=\"noreferrer noopener\">4<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"ssh-keygen-%EC%82%AC%EC%9A%A9%EC%8B%9C-%EC%9C%A0%EC%9D%98%EC%82%AC%ED%95%AD\">ssh-keygen \uc0ac\uc6a9\uc2dc \uc720\uc758\uc0ac\ud56d<\/h1>\n\n\n\n<p>\ud0a4 \uc30d\uc744 \uc0dd\uc131\ud560 \ub54c \ub2e4\uc74c\uacfc \uac19\uc740 \uc810\uc5d0 \uc720\uc758\ud574\uc57c \ud569\ub2c8\ub2e4:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\uae30\uc874 \ud0a4 \ub36e\uc5b4\uc4f0\uae30 \uc8fc\uc758<\/strong><ul><li>\uc774\ubbf8 \uac19\uc740 \uc704\uce58\uc5d0 \uae30\uc874 \ud0a4\uac00 \uc874\uc7ac\ud558\ub294 \uacbd\uc6b0, ssh-keygen\uc740 \ub36e\uc5b4\uc4f8\uc9c0\ub97c \ubb3b\uc2b5\ub2c8\ub2e4. \uae30\uc874 \ud0a4\ub97c \ub36e\uc5b4\uc4f0\uba74 \uadf8 \ud0a4\uac00 \ub4f1\ub85d\ub41c \uc11c\ubc84\uc640\uc758 \uc5f0\uacb0\uc774 \ub04a\uc5b4\uc9c0\ubbc0\ub85c \uc8fc\uc758\ud574\uc57c \ud569\ub2c8\ub2e4. \ub9cc\uc57d \ubcc4\ub3c4\uc758 \uc774\ub984\uc73c\ub85c \ud0a4\ub97c \uc0dd\uc131\ud558\uace0\uc790 \ud55c\ub2e4\uba74\u00a0<code>-f<\/code>\u00a0\uc635\uc158\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc800\uc7a5\ud560 \ud30c\uc77c \uc774\ub984\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4:<\/li><\/ul><code>ssh-keygen -f ~\/.ssh\/my_new_key<\/code><\/li>\n\n\n\n<li><strong>SSH \uc5d0\uc774\uc804\ud2b8 \uc0ac\uc6a9\ubc95<\/strong><ul><li>\uc0dd\uc131\ub41c \ud0a4\uc5d0 \uc554\ud638\ub97c \uc124\uc815\ud55c \uacbd\uc6b0, \ub9e4\ubc88 \uc554\ud638\ub97c \uc785\ub825\ud558\ub294 \uac83\uc774 \ubc88\uac70\ub86d\ub2e4\uba74 SSH \uc5d0\uc774\uc804\ud2b8\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. SSH \uc5d0\uc774\uc804\ud2b8\ub97c \ud1b5\ud574 \ud0a4\ub97c \uba54\ubaa8\ub9ac\uc5d0 \uce90\uc2dc\ud558\uc5ec \uc0ac\uc6a9\ud558\uba74, \ub85c\uadf8\uc778 \uc2dc \uc554\ud638 \uc785\ub825\uc744 \uc0dd\ub7b5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc774 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/li><\/ul><code>eval $(ssh-agent -s) ssh-add ~\/.ssh\/id_rsa<\/code><\/li>\n\n\n\n<li><strong>Repository\uc5d0 \uacf5\uac1c\ud0a4 \ucd94\uac00<\/strong>\n<ul class=\"wp-block-list\">\n<li>GitHub\uc640 \uac19\uc740 \ub9ac\ud3ec\uc9c0\ud1a0\ub9ac\uc5d0\uc11c SSH \ud0a4\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc0dd\uc131\ub41c \uacf5\uac1c\ud0a4\ub97c \ud574\ub2f9 \ud50c\ub7ab\ud3fc\uc5d0 \ub4f1\ub85d\ud574\uc57c \ud569\ub2c8\ub2e4. \uacf5\uac1c\ud0a4\ub294\u00a0<code>.pub<\/code>\u00a0\ud30c\uc77c\ub85c \uc800\uc7a5\ub418\uba70, \uc774 \ub0b4\uc6a9\uc744 \ubcf5\uc0ac\ud558\uc5ec GitHub \uacc4\uc815\uc758 SSH Keys \uc138\ud305 \ud654\uba74\uc5d0 \ubd99\uc5ec\ub123\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\uc548\uc804\ud55c \uc800\uc7a5<\/strong>\n<ul class=\"wp-block-list\">\n<li>\uac1c\uc778\ud0a4(private key)\ub294 \uc548\uc804\ud558\uac8c \ubcf4\uad00\ud574\uc57c \ud558\uba70, \uc808\ub300\ub85c \uacf5\uac1c\ub418\uc9c0 \uc54a\uc544\uc57c \ud569\ub2c8\ub2e4. \ub9cc\uc57d \uac1c\uc778\ud0a4\uac00 \uc720\ucd9c\ub41c\ub2e4\uba74, \ud574\ub2f9 \ud0a4\uc640 \uc5f0\uacb0\ub41c \uc2dc\uc2a4\ud15c\uc5d0 \ub300\ud55c \ubcf4\uc548\uc774 \uc704\ud611\ubc1b\uac8c \ub429\ub2c8\ub2e4<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>ssh-keygen\uc740 SSH(Secure Shell) \uc811\uc18d\uc744 \uc704\ud55c \uc778\uc99d \ud0a4\ub97c \uc0dd\uc131\ud558\ub294 \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uacf5\uac1c\ud0a4\uc640 \uac1c\uc778\ud0a4 \uc30d\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc0dd\uc131\ub41c \ud0a4 \uc30d\uc740 \uc6d0\uaca9 \uc11c\ubc84\uc640\uc758 \uc548\uc804\ud55c \ud1b5\uc2e0\uc744 \ubcf4\uc7a5\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\ubc95 ssh-keygen \uba85\ub839\uc5b4\ub294 \ub2e4\uc591\ud55c \uc635\uc158\uacfc \ud568\uaed8 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uae30\ubcf8\uc801\uc73c\ub85c \uc544\ub798\uc640 \uac19\uc740 \ud615\uc2dd\uc744 \uac00\uc9d1\ub2c8\ub2e4: \uae30\ubcf8 \uc0ac\uc6a9\ubc95 \uc544\ubb34 \uc635\uc158 \uc5c6\uc774 ssh-keygen\uc744 \uc785\ub825\ud574\ub3c4 \uae30\ubcf8 RSA \uc54c\uace0\ub9ac\uc998\uc73c\ub85c \ud0a4 \uc30d\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-3-24----"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.koseongnam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}