{"id":77,"date":"2020-01-30T19:21:00","date_gmt":"2020-01-30T19:21:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=77"},"modified":"2024-02-06T08:15:09","modified_gmt":"2024-02-06T13:15:09","slug":"creating-public-private-keys","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/creating-public-private-keys\/","title":{"rendered":"Creating public\/private keys"},"content":{"rendered":"\n<p>To create your public \/ private key on Linux or Mac, which is a unix-based system, following these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open terminal<\/li><li>type the following commandssh-keygen -t rsa<\/li><li>Type enter to ignore passphrase twice<\/li><\/ol>\n\n\n\n<p>By default you keys will be saved in ~.\/ssh directory. id_rsa is the private key. id_rsa.pub is the public key. Place a copy of your public key on systems you wish to login through you key pair.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Copying public key to server<\/h3>\n\n\n\n<p>If you copy your public key to your server, you would be able to login without having to type in your password. To copy your public key to the server, type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/.ssh\ncat id_rsa.pub | ssh username@remoteserver 'cat >> .ssh\/authorized_keys';<\/code><\/pre>\n\n\n\n<p>Replace username with your login. Replace remoteserver with your server name or ip.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create your public \/ private key on Linux or Mac, which is a unix-based system, following these steps: Open terminal type the following commandssh-keygen -t rsa Type enter to ignore passphrase twice By default you keys will be saved in ~.\/ssh directory. id_rsa is the private key. id_rsa.pub is the public key. Place a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,32],"tags":[35,33],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-linux","category-mac-os","tag-linux","tag-mac-os"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/77\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}