{"id":82,"date":"2013-04-14T11:53:45","date_gmt":"2013-04-14T10:53:45","guid":{"rendered":"http:\/\/www.morong.info\/?p=82"},"modified":"2013-04-14T12:05:25","modified_gmt":"2013-04-14T11:05:25","slug":"ssh-without-password","status":"publish","type":"post","link":"https:\/\/www.morong.info\/?p=82","title":{"rendered":"SSH without password"},"content":{"rendered":"<p>V adres\u00e1\u0159i u\u017eivatele (t\u0159eba root)<\/p>\n<p>local$ cd root<br \/>\nlocal$ rm -rf .ssh<br \/>\nlocal$ mkdir .ssh<\/p>\n<p>Create now the public and private keys for our local host<\/p>\n<p>local$ ssh-keygen -t rsa -f .ssh\/id_rsa -C &#8222;localusername@localaddress&#8220;<\/p>\n<p>the switch -C add the \u201clocalusername@localaddress\u201d comment in the key content (ale nemus\u00ed b\u00fdt).<\/p>\n<p>This command will ask for a passphrase, for simplicity leave it blank (press enter).<\/p>\n<p>Now transfer the .ssh\/id_rsa.pub file into the ssh folder on your remote host, maybe through scp, ftp or whatever.<\/p>\n<p>P\u0159ihla\u0161te se na vzd\u00e1len\u00fd stroj (nap\u0159. SYNOLOGY)<\/p>\n<p>remote$ cd \/root<br \/>\nremote$ mkdir .ssh<br \/>\nremote$ touch .ssh\/authorized_keys<br \/>\nremote$ cat .ssh\/id_rsa.pub &gt;&gt; .ssh\/authorized_keys<br \/>\nremote$ chmod 644 .ssh\/authorized_keys<br \/>\nremote$ chmod 700 .ssh<br \/>\nremote$ exit<\/p>\n<p>P\u0159evzato z &#8211;<br \/>\n<a href=\"http:\/\/www.cesareriva.com\/ssh-without-password\/\">http:\/\/www.cesareriva.com\/ssh-without-password\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>V adres\u00e1\u0159i u\u017eivatele (t\u0159eba root) local$ cd root local$ rm -rf .ssh local$ mkdir .ssh Create now the public and private keys for our local host local$ ssh-keygen -t rsa -f .ssh\/id_rsa -C &#8222;localusername@localaddress&#8220; the switch -C add the \u201clocalusername@localaddress\u201d &hellip; <a href=\"https:\/\/www.morong.info\/?p=82\">Cel\u00fd p\u0159\u00edsp\u011bvek <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.morong.info\/index.php?rest_route=\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.morong.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.morong.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.morong.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.morong.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=82"}],"version-history":[{"count":3,"href":"https:\/\/www.morong.info\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/www.morong.info\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/www.morong.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.morong.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.morong.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}