{"id":951,"date":"2015-07-08T22:24:14","date_gmt":"2015-07-08T22:24:14","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=951"},"modified":"2015-07-08T22:24:14","modified_gmt":"2015-07-08T22:24:14","slug":"setting-up-ssh-keys-in-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/setting-up-ssh-keys-in-linux\/","title":{"rendered":"Setting up ssh keys in Linux"},"content":{"rendered":"<p>Generate a key with the following command.\u00a0 If you are trying to setup passwordless authentication, then do not enter in a password<\/p>\n<pre><code>ssh-keygen<\/code><\/pre>\n<p>or if you want to use DSA,<\/p>\n<pre>ssh-keygen -t dsa<\/pre>\n<p>Example:<\/p>\n<pre>[root@localhost ~]# ssh-keygen\r\nGenerating public\/private rsa key pair.\r\nEnter file in which to save the key (\/root\/.ssh\/id_rsa):\r\nEnter passphrase (empty for no passphrase):\r\nEnter same passphrase again:\r\nYour identification has been saved in \/root\/.ssh\/id_rsa.\r\nYour public key has been saved in \/root\/.ssh\/id_rsa.pub.\r\nThe key fingerprint is:\r\nef:f2:34:e5:12:ac:ab:1b:67:9f:ff:00:12:2d:cd:16 root@localhost<\/pre>\n<p>Upload public key to server.\u00a0 Note: you will need to enter in your Password so ssh-copy-id can upload the key, after that you should not need to enter in a password.<\/p>\n<pre>\u00a0ssh-copy-id root@remote-server<\/pre>\n<p>Now login to the remote server.<\/p>\n<pre>ssh root@remote-server<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Generate a key with the following command.\u00a0 If you are trying to setup passwordless authentication, then do not enter in a password ssh-keygen or if you want to use DSA, ssh-keygen -t dsa Example: [root@localhost ~]# ssh-keygen Generating public\/private rsa &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/setting-up-ssh-keys-in-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[239,238,221],"class_list":["post-951","post","type-post","status-publish","format-standard","hentry","category-linux","tag-login-remote","tag-passwordless","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=951"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/951\/revisions"}],"predecessor-version":[{"id":952,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/951\/revisions\/952"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}