{"id":107990,"date":"2020-05-30T06:44:18","date_gmt":"2020-05-29T22:44:18","guid":{"rendered":"http:\/\/4563.org\/?p=107990"},"modified":"2020-05-30T06:44:18","modified_gmt":"2020-05-29T22:44:18","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88-linux-%e5%af%86%e7%a0%81%e8%bf%87%e6%9c%9f%e4%ba%86%ef%bc%8c%e5%9f%ba%e4%ba%8e-key-%e7%9a%84-ssh-%e4%b9%9f%e4%b8%8d%e8%83%bd%e7%99%bb%e5%bd%95%e4%ba%86%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=107990","title":{"rendered":"\u4e3a\u4ec0\u4e48 Linux \u5bc6\u7801\u8fc7\u671f\u4e86\uff0c\u57fa\u4e8e key \u7684 ssh \u4e5f\u4e0d\u80fd\u767b\u5f55\u4e86\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e3a\u4ec0\u4e48 Linux \u5bc6\u7801\u8fc7\u671f\u4e86\uff0c\u57fa\u4e8e key \u7684 ssh \u4e5f\u4e0d\u80fd\u767b\u5f55\u4e86\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mrco <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Hi *\uff0c<\/p>\n<p>\u56e0\u4e3a\u7b49\u4fdd\u5173\u7cfb\uff0c\u8bbe\u7f6e\u4e86\u5bc6\u7801\u7684\u8fc7\u671f\u5929\u6570\u4e3a 90\uff0c\u7136\u540e\u597d\u591a\u673a\u5668\u5f97\u5bc6\u7801\u90fd\u8fc7\u671f\u4e86\uff0c\u4eca\u5929 ansible \u53bb\u6279\u91cf\u64cd\u4f5c\u7684\u65f6\u5019\u63d0\u793a\uff1a<\/p>\n<pre><code>    \"changed\": false,     \"msg\": \"Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"\/tmp\". Failed command was: ( umask 77 &amp;&amp; mkdir -p \"` echo \/tmp\/.ansible\/tmp\/ansible-tmp-1590631400.07-259586530289547 `\" &amp;&amp; echo ansible-tmp-1590631400.07-259586530289547=\"` echo \/tmp\/.ansible\/tmp\/ansible-tmp-1590631400.07-259586530289547 `\" ), exited with result 1\",     \"unreachable\": true <\/code><\/pre>\n<p>\u901a\u8fc7\u8df3\u677f\u673a\u767b\u5f55\u63d0\u793a\uff1a<\/p>\n<pre><code>You are required to change your password immediately (password aged) su: Authentication token is no longer valid; new one required (Ignored) <\/code><\/pre>\n<p>\u6211\u7684\u7591\u95ee\u662f\u4e3a\u4ec0\u4e48\u5bc6\u7801\u8fc7\u671f\u4e86 key \u4e5f\u4e0d\u80fd ssh \u767b\u5f55\u4e86\uff1f \u6211\u4eec\u4e0d\u7528\u5bc6\u7801\u767b\u5f55\uff0c\u53ea\u7528 key \u767b\u5f55\uff0c\u5728\u7b26\u5408\u7b49\u4fdd\u8981\u6c42\u7684\u201c\u8bbe\u7f6e\u5bc6\u7801\u8fc7\u671f\u5929\u6570\u201d\u7684\u60c5\u51b5\u4e0b\uff0c\u5e94\u8be5\u600e\u4e48\u914d\u7f6e\u5462\uff0c\u8c22\u8c22\u5927\u5bb6\uff01<\/p>\n<p>PS\uff1a\u7cfb\u7edf\u4e3a ubuntu18.04<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1796445\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 580a388da131 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bc6\u7801\u8fc7\u671f\u540e\u8d26\u6237\u80cc\u7981\u7528\u4e86\u5440<br \/>\u5230\u671f\u524d\u5ef6\u957f\u6709\u6548\u671f\u5457                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1796446\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BadAngel <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b9a\u65f6\u4efb\u52a1 \u63a8\u9001\u65b0 Key \u66f4\u65b0 Token                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1796447\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 580a388da131 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7528 ansible \u5b9a\u671f\u6279\u91cf\u6539\u5bc6\u7801 \u4e0d\u662f\u66f4\u5b89\u5168\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1796448\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mrco <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @580a388da131 \u6ca1\u9519\uff0c\u4f46\u662f\u6211\u73b0\u5728\u7528\u4e8e ansible \u7684\u7528\u6237\u5df2\u7ecf\u8fc7\u671f\u4e86\uff0c\u6240\u4ee5\u4e0d\u80fd ansible \u6279\u91cf\u4e86\u3002<\/p>\n<p>\u8fd8\u597d\u521d\u59cb\u5316\u7684\u65f6\u5019\u9884\u57cb\u4e86\u4e00\u4e2a\u8d85\u7ba1\u8d26\u53f7                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48 Linux \u5bc6\u7801\u8fc7\u671f\u4e86\uff0c\u57fa&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/107990"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107990"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/107990\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107990"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}