{"id":302,"date":"2022-06-28T13:09:14","date_gmt":"2022-06-28T11:09:14","guid":{"rendered":"https:\/\/linowebserver.org\/?p=302"},"modified":"2022-09-15T22:49:33","modified_gmt":"2022-09-15T20:49:33","slug":"howto-fix-ssh-copy-id-error-no-identities-found","status":"publish","type":"post","link":"https:\/\/linowebserver.org\/index.php\/2022\/06\/28\/howto-fix-ssh-copy-id-error-no-identities-found\/","title":{"rendered":"How to: fix ssh-copy-id: ERROR: No identities found"},"content":{"rendered":"\n<p>first check ur \/root\/.ssh folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/root\/.ssh\nls\n\/\/output like \n190709 4 -rw------- 1 root root  566 Jun 20 13:19 authorized_keys\n190718 4 -rw-r--r-- 1 root root  444 Jun 28 12:48 known_hosts\n<\/code><\/pre>\n\n\n\n<p>The files <strong>id_rsa<\/strong> and <strong>id_rsa.pub<\/strong> is missing. <br>So now u can search ifor the 2 files in ur system. if u found it, give the correct path to id file on ssh-copy-id<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-copy-id -i \/path\/to\/id_file -p SSH-PortNumer user@hostname\n<\/code><\/pre>\n\n\n\n<p>otherwise u have to create the id file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen\n\/\/output\nenerating public\/private rsa key pair.\nEnter file in which to save the key (\/root\/.ssh\/id_rsa): \nEnter passphrase (empty for no passphrase): \nEnter same passphrase again: \nYour identification has been saved in \/root\/.ssh\/id_rsa\nYour public key has been saved in \/root\/.ssh\/id_rsa.pub\nThe key fingerprint is:\n\nssh-copy-id -p SSH-Port-Numer user@hostname<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>first check ur \/root\/.ssh folder: The files id_rsa and id_rsa.pub is missing. So now u can search ifor the 2 files in ur system. if u found it, give the correct path to id file on ssh-copy-id otherwise u have to create the id file:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,9,66],"tags":[],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-howto-2","category-linux","category-linux-3"],"_links":{"self":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts\/302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":2,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"predecessor-version":[{"id":320,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts\/302\/revisions\/320"}],"wp:attachment":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}