{"id":178,"date":"2015-09-06T08:00:05","date_gmt":"2015-09-06T04:30:05","guid":{"rendered":"http:\/\/discoverwebidea.com\/blog\/?p=178"},"modified":"2015-09-02T15:02:42","modified_gmt":"2015-09-02T11:32:42","slug":"%d9%88%d8%b1%d9%88%d8%af-%d8%a8%d9%87-ssh-%d8%a8%d8%af%d9%88%d9%86-%d8%b1%d9%85%d8%b2-ssh-key","status":"publish","type":"post","link":"https:\/\/webide.ir\/blog\/%d9%88%d8%b1%d9%88%d8%af-%d8%a8%d9%87-ssh-%d8%a8%d8%af%d9%88%d9%86-%d8%b1%d9%85%d8%b2-ssh-key","title":{"rendered":"\u0648\u0631\u0648\u062f \u0628\u0647 SSH \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 (SSH Key)"},"content":{"rendered":"<h3>\u0647\u062f\u0641 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f SSH Key \u0648 \u0641\u0631\u0627\u0647\u0645 \u0622\u0648\u0631\u062f\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0648\u0631\u0648\u062f \u0628\u0647 SSH Server \u0647\u0627 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632:<\/h3>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u0628 \u0645\u06cc\u062a\u0648\u0627\u0646 \u06af\u0641\u062a \u0628\u0631\u0627\u06cc \u0635\u0631\u0641\u0647 \u062c\u0648\u06cc\u06cc \u062f\u0631 \u0648\u0642\u062a \u0648 \u0627\u0646\u0631\u0698\u06cc \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0628\u0647 \u0634\u0645\u0627 \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u060c \u0627\u0632 \u0637\u0631\u0641\u06cc \u062f\u0631 \u0642\u0631\u0646 21 \u06a9\u0647 \u0633\u0631\u0639\u062a \u0631\u0634\u062f \u0639\u0644\u0645 \u0648 \u0641\u0646\u0627\u0648\u0631\u06cc \u0647\u0631 \u062f\u0648 \u0633\u0647 \u0633\u0627\u0644 \u06cc\u06a9\u0628\u0627\u0631 \u062f\u0648\u0628\u0627\u0631 \u0645\u06cc \u0634\u0648\u062f\u060c \u06cc\u0639\u0646\u06cc \u0627\u06cc\u0646 \u0642\u0631\u0646 \u0647\u06cc\u0686 \u062d\u0627\u0634\u06cc\u0647 \u0627\u06cc \u0646\u0637\u0644\u0628\u06cc\u062f\u0647 \u0648 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0633\u0645\u062a \u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u06a9\u0627\u0631\u0647\u0627 \u067e\u06cc\u0634 \u0628\u0631\u0648\u06cc\u0645 \u060c \u00a0\u0645\u0646 \u0628\u0627\u0628\u00a0\u0645\u062b\u0627\u0644 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u0647\u0631 \u0634\u0628 \u0633\u0627\u0639\u062a \u06f1\u06f2 \u0627\u0632 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0633\u0631\u0648\u0631\u062a\u0648\u0646 \u0628\u06a9\u0627\u067e \u0628\u06af\u06cc\u0631\u06cc\u062f \u0648 \u0627\u0632 \u0627\u0637\u0631\u06cc\u0642 rsync \u06cc\u0627 scp \u0641\u0627\u06cc\u0644 \u0647\u0627 \u0628\u0647 \u0633\u0631\u0648\u0631 \u062f\u06cc\u06af\u0647 \u0627\u06cc \u0627\u0646\u062a\u0642\u0627\u0644 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f<\/p>\n<p><b>\u0633\u0631\u0648\u0631 \u0627\u0648\u0644 A \u0648 \u0628\u0627 \u0622\u06cc \u067e\u06cc \u06f1\u06f9\u06f2.\u06f1\u06f6\u06f8.\u06f0.\u06f1\u06f0\u06f0\u00a0<\/b>\u0648\u00a0<strong>\u0633\u0631\u0648\u0631 \u062f\u0648\u0645 B \u0648 \u0628\u0627 \u0622\u06cc \u067e\u06cc \u06f1\u06f9\u06f2.\u06f1\u06f6\u06f8.\u06f0.\u06f2\u06f0\u06f0<\/strong><\/p>\n<p>\u0646\u062e\u0633\u062a \u06cc\u06a9 ssh-key \u0628\u0633\u0627\u0632\u06cc\u062f \u060c \u062f\u0627\u062e\u0644 \u0633\u0631\u0648\u0631 \u0627\u0648\u0644:<\/p>\n<p style=\"direction: ltr;\">\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">A@192.168.0.100:~&gt; ssh-keygen -t rsa<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Generating public\/private rsa key pair.<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Enter file in which to save the key (\/home\/a\/.ssh\/id_rsa):\u00a0<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Created directory &#8216;\/home\/a\/.ssh&#8217;.<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Enter passphrase (empty for no passphrase):\u00a0<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Enter same passphrase again:\u00a0<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Your identification has been saved in \/home\/a\/.ssh\/id_rsa.<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">Your public key has been saved in \/home\/a\/.ssh\/id_rsa.pub.<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">The key fingerprint is:<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">\u06f3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A<\/span><\/p>\n<p style=\"direction: rtl;\">\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646 \u0645\u0631\u0627\u062d\u0644 \u0633\u0648\u0627\u0644\u0627\u062a \u0632\u06cc\u0627\u062f\u06cc \u0627\u0632 \u0634\u0645\u0627 \u067e\u0631\u0633\u06cc\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u06a9\u0647 \u0647\u0645\u0647 \u0631\u0627 Enter \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"direction: rtl;\">\u062d\u0627\u0644\u0627 \u0627\u0632 \u0633\u0631\u0648\u0631 A \u0628\u0647 \u0633\u0631\u0648\u0631 B \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f:<\/p>\n<p style=\"direction: ltr;\">\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">A@192.168.0.100:~&gt; ssh B@192.168.0.200 mkdir -p .ssh<\/span><\/p>\n<p style=\"direction: ltr;\"><span style=\"line-height: 1.5;\">B@192.168.0.200&#8217;s password:<\/span><\/p>\n<p style=\"direction: ltr;\">a@192.168.0.100:~&gt; cat .ssh\/id_rsa.pub | ssh B@192.168.0.200 &#8216;cat &gt;&gt; .ssh\/authorized_keys&#8217;<\/p>\n<p style=\"direction: rtl;\">\u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 \u0628\u0647 \u0633\u0631\u0648\u0631 B \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;178&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u0648\u0631\u0648\u062f \u0628\u0647 SSH \u0628\u062f\u0648\u0646 \u0631\u0645\u0632 (SSH Key)&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0647\u062f\u0641 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f SSH Key \u0648 \u0641\u0631\u0627\u0647\u0645 \u0622\u0648\u0631\u062f\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0648\u0631\u0648\u062f \u0628\u0647 SSH Server \u0647\u0627 \u0628\u062f\u0648\u0646 \u0631\u0645\u0632: \u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u0628 \u0645\u06cc\u062a\u0648\u0627\u0646 \u06af\u0641\u062a \u0628\u0631\u0627\u06cc \u0635\u0631\u0641\u0647 \u062c\u0648\u06cc\u06cc \u062f\u0631 \u0648\u0642\u062a \u0648 \u0627\u0646\u0631\u0698\u06cc \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0628\u0647 \u0634\u0645\u0627 \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u060c \u0627\u0632 \u0637\u0631\u0641\u06cc \u062f\u0631 \u0642\u0631\u0646 21 \u06a9\u0647 \u0633\u0631\u0639\u062a \u0631\u0634\u062f \u0639\u0644\u0645 \u0648 \u0641\u0646\u0627\u0648\u0631\u06cc \u0647\u0631 \u062f\u0648 \u0633\u0647 \u0633\u0627\u0644 \u06cc\u06a9\u0628\u0627\u0631 \u062f\u0648\u0628\u0627\u0631 \u0645\u06cc \u0634\u0648\u062f\u060c &hellip;<\/p>\n","protected":false},"author":2,"featured_media":181,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-178","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncat"],"jetpack_featured_media_url":"https:\/\/webide.ir\/blog\/wp-content\/uploads\/2015\/09\/p19715.gif","views":"2496","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/parry3-2S","_links":{"self":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":0,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media\/181"}],"wp:attachment":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}