{"id":127,"date":"2006-05-31T22:39:53","date_gmt":"2006-05-31T21:39:53","guid":{"rendered":"http:\/\/www.paullynch.org\/blog\/?p=127"},"modified":"2006-05-31T22:39:53","modified_gmt":"2006-05-31T21:39:53","slug":"ssh-login-without-password","status":"publish","type":"post","link":"http:\/\/www.paullynch.org\/blog\/?p=127","title":{"rendered":"ssh login without password"},"content":{"rendered":"<p>I need to make a note of this, as I keep on looking it up on the web.  Here&#8217;s the situation: you want to automate access to a server from your private machine, and are prepared to give up the security of the password prompt to get this extra benefit.  If so, use this:<\/p>\n<pre>\nssh-keygen -t dsa -N \"\"\nssh <remotehost> mkdir -p -m 700 $HOME\/.ssh\n# The next command should be the last time ssh asks for a password.\ncat $HOME\/.ssh\/id_dsa.pub | ssh <remotehost> 'cat >>$HOME\/.ssh\/authorized_keys'\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I need to make a note of this, as I keep on looking it up on the web. Here&#8217;s the situation: you want to automate access to a server from your private machine, and are prepared to give up the security of the password prompt to get this extra benefit. If so, use this: ssh-keygen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[37],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-server-side","tag-unix-admin"],"_links":{"self":[{"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":0,"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.paullynch.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}