{"id":6052,"date":"2018-03-25T15:52:57","date_gmt":"2018-03-25T15:52:57","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=6052"},"modified":"2018-03-25T15:52:57","modified_gmt":"2018-03-25T15:52:57","slug":"how-to-log-into-a-linux-server-without-a-password","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/how-to-log-into-a-linux-server-without-a-password\/","title":{"rendered":"How to log into a Linux server without a password"},"content":{"rendered":"<p>Let&#8217;s assume we have two Linux systems, client and server. <\/p>\n<p>On the client, carry out the following steps<\/p>\n<ul>\n<li>ssh-keygen<\/li>\n<li>By default saves to \/home\/username\/.ssh\/id_rsa<\/li>\n<li>Enter a passphrase (if you want to add one to the key)<\/li>\n<li>ssh-copy-id root@server (replace root@server with your user name and server IP or host name)<\/li>\n<li>You should get prompted for the server&#8217;s password, enter this and the key will be copied<\/li>\n<\/ul>\n<p>To test everything worked, execute the following<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nssh root@server\r\n<\/pre>\n<p>(obviously, replacing root@server with your user name and server IP or host name) and if all worked you should log into the server without having to enter a password.<\/p>\n<p>Now for each server that you need ssh access without a password, simple run <em>ssh-copy-id root@server<\/em> with the username and server that you want to connect to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s assume we have two Linux systems, client and server. On the client, carry out the following steps ssh-keygen By default saves to \/home\/username\/.ssh\/id_rsa Enter a passphrase (if you want to add one to the key) ssh-copy-id root@server (replace root@server with your user name and server IP or host name) You should get prompted for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[58,140],"tags":[],"class_list":["post-6052","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=6052"}],"version-history":[{"count":3,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6052\/revisions"}],"predecessor-version":[{"id":6055,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6052\/revisions\/6055"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=6052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=6052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=6052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}