{"id":1435,"date":"2016-09-08T23:38:38","date_gmt":"2016-09-08T23:38:38","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1435"},"modified":"2016-09-08T23:41:06","modified_gmt":"2016-09-08T23:41:06","slug":"how-to-export-private-ssh-key-on-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-export-private-ssh-key-on-linux\/","title":{"rendered":"How To export private SSH key on Linux"},"content":{"rendered":"<p>All that needs to be done is the &#8220;id_rsa&#8221; key needs to be copied to the &#8220;new&#8221; host.\u00a0 You can do this with SCP or sftp.<\/p>\n<p>Example with SCP<\/p>\n<p>The following examples are showing how to export a RSA private key, if your using DSA, then replace id_rsa with id_dsa.<\/p>\n<p>Copy private key from remote server to local machine for the local user<\/p>\n<pre>scp root@192.168.1.1:~\/.ssh\/id_rsa ~\/.ssh\/<\/pre>\n<p>Copy private key from localhost to remote host.\u00a0 This command copies the local users private key to the root user @ 192.168.1.1<\/p>\n<pre>scp ~\/.ssh\/id_rsa root@192.168.1.1:~\/.ssh\/<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All that needs to be done is the &#8220;id_rsa&#8221; key needs to be copied to the &#8220;new&#8221; host.\u00a0 You can do this with SCP or sftp. Example with SCP The following examples are showing how to export a RSA private &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-export-private-ssh-key-on-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,4,264,24,3],"tags":[8,307,7,306,221],"class_list":["post-1435","post","type-post","status-publish","format-standard","hentry","category-centos-linux","category-command-line","category-debian","category-fedora-2","category-linux","tag-command-line-2","tag-keys","tag-linux-2","tag-scp","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1435"}],"version-history":[{"count":5,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1435\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1435\/revisions\/1441"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}