{"id":932,"date":"2017-04-21T11:26:06","date_gmt":"2017-04-21T09:26:06","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=932"},"modified":"2017-04-21T11:26:06","modified_gmt":"2017-04-21T09:26:06","slug":"ssh-passwordless-login-in-openssh","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=932","title":{"rendered":"SSH passwordless login in OpenSSH"},"content":{"rendered":"<p>\n\tYou can login to a remote Linux server without entering password in 3 simple steps:\n<\/p>\n<ol>\n<li>\n\t\tcreate public and private keys on the source\/local server:<\/p>\n<pre>\n# ssh-keygen<\/pre>\n<\/li>\n<li>\n\t\tcopy the public key from local to destination\/remote host:<\/p>\n<pre>\n# ssh-copy-id -i ~\/.ssh\/id_rsa.pub &lt;remote ip&gt;<\/pre>\n<\/li>\n<li>\n\t\ttest passwordless login:<\/p>\n<pre>\n# ssh &lt;remote ip&gt;<\/pre>\n<\/li>\n<\/ol>\n<p>\n\tIf all went well you should not be asked for a password. You can find your key on the remote system in ~\/.ssh\/authorized_keys\n<\/p>\n<p>\n\tThie above commands were executed as root user and the mechanism is done for root@local -&gt; root@remote.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can login to a remote Linux server without entering password in 3 simple steps: create public and private keys on the source\/local server: # ssh-keygen copy the public key from local to destination\/remote host: # ssh-copy-id -i ~\/.ssh\/id_rsa.pub &lt;remote ip&gt; test passwordless login: # ssh &lt;remote ip&gt; If all went well you should not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-932","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=932"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/932\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}