{"id":53200,"date":"2020-04-05T15:50:57","date_gmt":"2020-04-05T07:50:57","guid":{"rendered":"http:\/\/4563.org\/?p=53200"},"modified":"2020-04-05T15:50:57","modified_gmt":"2020-04-05T07:50:57","slug":"%e3%80%90%e8%af%a1%e5%bc%82%e4%ba%8b%e4%bb%b6%e3%80%91macos%e6%97%a0%e6%b3%95ssh-hosts%e5%90%8d%e7%a7%b0","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=53200","title":{"rendered":"\u3010\u8be1\u5f02\u4e8b\u4ef6\u3011MacOS\u65e0\u6cd5ssh hosts\u540d\u79f0"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u65e5\u672c\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u3010\u8be1\u5f02\u4e8b\u4ef6\u3011MacOS\u65e0\u6cd5ssh hosts\u540d\u79f0<\/h3>\n<p>  \t\t1. \u5df2\u7ecf\u6dfb\u52a0hosts\u8bb0\u5f55 Mac 10.15.4<\/p>\n<p>  ##<br \/>  # Host Database<br \/>  #<br \/>  # localhost is used to configure the loopback interface<br \/>  # when the system is booting.Do not change this entry.<br \/>  ##<br \/>  127.0.0.1&nbsp; &nbsp; &nbsp; &nbsp; localhost<br \/>  255.255.255.255&nbsp; &nbsp; &nbsp; &nbsp; broadcasthost<br \/>  ::1&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; localhost<br \/>  1.1.1.1&nbsp; &nbsp; &nbsp; &nbsp; args<\/p>\n<p>  \u5176\u4e2d 1.1.1.1 \u4e3a\u6211\u7684IP<\/p>\n<p>  2. \u7136\u540essh\u4e0d\u4e86<\/p>\n<p>  ssh root@args<\/p>\n<p>  \u4e4b\u524d\u90fd\u8fd8\u53ef\u4ee5\uff0c\u73b0\u5728\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u66f4\u65b0\u7cfb\u7edf\u8fd8\u662f\u4ec0\u4e48\u539f\u56e0\u65e0\u6cd5ssh\u4e86\uff0c\u6709\u5927\u4f6c\u77e5\u9053\u5982\u4f55\u89e3\u51b3\u5417\uff0cssh\u4e4b\u540e\u4e00\u76f4\u4e0d\u8d85\u65f6\u4e5f\u4e0d\u54cd\u5e94\uff0c<\/p>\n<p>  ssh root@IP\u5730\u5740\u53ef\u4ee5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Nameless<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u662f\u4e0d\u662f\u6211\u7528\u9519\u4e86\uff1f<br \/>  \u6211\u90fd\u653e ~\/.ssh\/config \u91cc<br \/>  \u6bd4\u5982\uff1a<br \/>  Host bwg<br \/>  &nbsp; &nbsp; HostName 123.123.123.123<br \/>  &nbsp; &nbsp; Port 22<br \/>  &nbsp; &nbsp; User root<\/p>\n<p>  \u7136\u540e ssh bwg \u5c31\u53ef\u4ee5\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u65e5\u672c\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tNameless \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-5 20:33<br \/>  \u662f\u4e0d\u662f\u6211\u7528\u9519\u4e86\uff1f<br \/>  \u6211\u90fd\u653e ~\/.ssh\/config \u91cc<br \/>  \u6bd4\u5982\uff1a<\/p>\n<p> \u6211\u8bf4\u7684\u65b9\u6cd5\u786e\u5b9e\u4e5f\u53ef\u4ee5\uff0c\u6211\u7684\u65b9\u6cd5\u914d\u5408authorized_keys\u5c31\u884c\u4e86\uff0c\u5f88\u65b9\u4fbf\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u65e5\u672c\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tNameless \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-5 20:33<br \/>  \u662f\u4e0d\u662f\u6211\u7528\u9519\u4e86\uff1f<br \/>  \u6211\u90fd\u653e ~\/.ssh\/config \u91cc<br \/>  \u6bd4\u5982\uff1a<\/p>\n<p> \u6211\u8bf4\u7684\u65b9\u6cd5\u786e\u5b9e\u4e5f\u53ef\u4ee5\uff0c\u6211\u7684\u65b9\u6cd5\u914d\u5408authorized_keys\u5c31\u884c\u4e86\uff0c\u5f88\u65b9\u4fbf\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Nameless<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u65e5\u672c\u4eba \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-5 20:36<br \/>  \u6211\u8bf4\u7684\u65b9\u6cd5\u786e\u5b9e\u4e5f\u53ef\u4ee5\uff0c\u6211\u7684\u65b9\u6cd5\u914d\u5408authorized_keys\u5c31\u884c\u4e86\uff0c\u5f88\u65b9\u4fbf<\/p>\n<p> config \u91cc\u4e5f\u53ef\u4ee5\uff0c IdentityFile \u53c2\u6570\u540e\u9762\u52a0\u5bc6\u94a5\u4e5f\u662f\u76f4\u63a5\u767b\u9646\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>fly930<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tHost&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;ali1<br \/>  HostName&nbsp; &nbsp;&nbsp; &nbsp;127.0.0.2<br \/>  Port&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;22<br \/>  User&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; root<br \/>  IdentityFile&nbsp; &nbsp;&nbsp; &nbsp;~\/.ssh\/id_rsa\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u672c\u4eba \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u3010\u8be1\u5f02\u4e8b\u4ef6&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\/53200"}],"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=53200"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/53200\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53200"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}