{"id":579,"date":"2012-10-26T03:58:03","date_gmt":"2012-10-26T01:58:03","guid":{"rendered":"http:\/\/blog.philippgoecke.de\/?p=579"},"modified":"2013-05-09T05:02:12","modified_gmt":"2013-05-09T03:02:12","slug":"openssh-with-authentication-key-instead-of-password-on-debian-squeezewheezyderivatives","status":"publish","type":"post","link":"https:\/\/stls.eu\/blog\/2012\/10\/26\/openssh-with-authentication-key-instead-of-password-on-debian-squeezewheezyderivatives\/","title":{"rendered":"OpenSSH with authentication key instead of password on Debian Squeeze\/Wheezy\/Derivatives"},"content":{"rendered":"<p>Generate the authentication public key on the Client<\/p>\n<pre>User@Client:~# ssh-keygen<\/pre>\n<p>Install the public key on the server<\/p>\n<pre>User@Client:~# ssh-copy-id -i \/path\/to\/what\/ever\/id_rsa.pub user@server.tld<\/pre>\n<p>Or<\/p>\n<pre>User@Client:~# ssh-keygen -t rsa<\/pre>\n<p>Copy the public key to the server<\/p>\n<pre>User@Client:~# scp .ssh\/id_rsa.pub user@server:\/path\/to\/what\/ever<\/pre>\n<p>Install the public key on the server<\/p>\n<pre>User@Server:~# cat \/path\/to\/what\/ever\/id_rsa.pub >> .ssh\/authorized_keys<\/pre>\n<p>server configuration (should not be needed today)<\/p>\n<pre>nano \/etc\/ssh\/sshd_config<\/pre>\n<pre>PubkeyAuthentication yes<\/pre>\n<p>to disable password login<\/p>\n<pre>PasswordAuthentication no<\/pre>\n<p>further info<br \/>\n<a href=\"http:\/\/www.debian-administration.org\/articles\/530\">SSH with authentication key instead of password<\/a><br \/>\n<a href=\"http:\/\/wiki.ubuntuusers.de\/SSH\">SSH<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Generate the authentication public key on the Client User@Client:~# ssh-keygen Install the public key on the server User@Client:~# ssh-copy-id -i \/path\/to\/what\/ever\/id_rsa.pub user@server.tld Or User@Client:~# ssh-keygen -t rsa Copy the public key to the server User@Client:~# scp .ssh\/id_rsa.pub user@server:\/path\/to\/what\/ever Install the &hellip; <a href=\"https:\/\/stls.eu\/blog\/2012\/10\/26\/openssh-with-authentication-key-instead-of-password-on-debian-squeezewheezyderivatives\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-579","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":10,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/579\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/579\/revisions\/585"}],"wp:attachment":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/categories?post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/tags?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}