{"id":46,"date":"2016-02-02T02:44:03","date_gmt":"2016-02-02T02:44:03","guid":{"rendered":"http:\/\/kloxo.web.id\/?p=46"},"modified":"2016-02-02T02:44:03","modified_gmt":"2016-02-02T02:44:03","slug":"solved-failed-to-add-the-host-to-the-list-of-known-hosts-root-sshknown_hosts","status":"publish","type":"post","link":"https:\/\/kloxo.web.id\/?p=46","title":{"rendered":"[SOLVED] Failed to add the host to the list of known hosts (\/root\/.ssh\/known_hosts)"},"content":{"rendered":"<p>LOCAL = 192.168.100.200<br \/>\nREMOTE = 192.168.100.210<\/p>\n<p>Make a SSH connection to REMOTE from LOCAL:<\/p>\n<p>LOCAL# ssh -i \/data\/ssh\/replication 192.168.100.210<\/p>\n<p>2 errors are displayed :<br \/>\n &#8211; Could not create directory &#8216;\/root\/.ssh&#8217;.<br \/>\n &#8211; Failed to add the host to the list of known hosts (\/root\/.ssh\/known_hosts).<\/p>\n<p>To fix this a did:<br \/>\nLOCAL# mount -uw \/<br \/>\nLOCAL# mkdir -p \/root\/.ssh\/<br \/>\nLOCAL# chmod 700 \/root\/.ssh<br \/>\nLOCAL# nano \/root\/.ssh\/known_hosts<br \/>\nLOCAL# ssh -i \/data\/ssh\/replication 192.168.100.210<\/p>\n<p>No errors like above on your display (hopefully :D)<\/p>\n<p>REMOTE# exit<br \/>\nLOCAL# mount -ur \/<\/p>\n<p>sumber : (https:\/\/forums.freenas.org\/index.php?threads\/replication-setting-up-ssh-key-based-authentication.2480\/)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LOCAL = 192.168.100.200 REMOTE = 192.168.100.210 Make a SSH connection to REMOTE from LOCAL: LOCAL# ssh -i \/data\/ssh\/replication 192.168.100.210 2 errors are displayed : &#8211; Could not create directory &#8216;\/root\/.ssh&#8217;. &#8211; Failed to add the host to the list of known hosts (\/root\/.ssh\/known_hosts). To fix this a did: LOCAL# mount -uw \/ LOCAL# mkdir -p [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-linux-server"],"_links":{"self":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}