{"id":3078,"date":"2023-02-16T02:46:50","date_gmt":"2023-02-16T02:46:50","guid":{"rendered":"https:\/\/wordpress.pedrorotoli.com\/?p=3078"},"modified":"2023-02-16T02:48:32","modified_gmt":"2023-02-16T02:48:32","slug":"adicionar-chave-privada-para-login-automatico-por-ssh","status":"publish","type":"post","link":"https:\/\/wordpress.pedrorotoli.com\/?p=3078","title":{"rendered":"Adicionar Chave Privada Para Login Autom\u00e1tico Por SSH"},"content":{"rendered":"<p>Dentro da pasta <span style=\"font-family: andale mono, monospace;\">~\/.ssh<\/span> crie um arquivo chamado <span style=\"font-family: andale mono, monospace;\">config<\/span>, dentro dele coloque o seguinte:<\/p>\n<pre>Host &lt;hostname ou IP&gt;\r\n    IdentityFile &lt;caminho do arquivo&gt;<\/pre>\n<p>Por exemplo:<\/p>\n<pre>Host 172.16.0.1\r\n    IdentityFile ~\/.ssh\/privkey<\/pre>\n<p>Caso o host tenha mais do que uma chave privada, simplesmente adicione uma segunda, ou terceira, linha abaixo de <span style=\"font-family: andale mono, monospace;\">IdentityFile<\/span>.<\/p>\n<p>Caso a chave tenha sido gerada utilizando o PuTTYgen, \u00e9 preciso primeiro a exportar para um formato v\u00e1lido para esse caso, para isso clique em <span style=\"font-family: andale mono, monospace;\">Conversions -&gt; Export OpenSSH key<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dentro da pasta ~\/.ssh crie um arquivo chamado config, dentro dele coloque o seguinte: Host &lt;hostname ou IP&gt; IdentityFile &lt;caminho do arquivo&gt; Por exemplo: Host<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[27,104,44],"class_list":["post-3078","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-private-key","tag-ssh"],"_links":{"self":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts\/3078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3078"}],"version-history":[{"count":3,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts\/3078\/revisions"}],"predecessor-version":[{"id":3081,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=\/wp\/v2\/posts\/3078\/revisions\/3081"}],"wp:attachment":[{"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.pedrorotoli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}