{"id":1730,"date":"2017-12-20T17:53:32","date_gmt":"2017-12-20T09:53:32","guid":{"rendered":"https:\/\/zoco.me\/?p=110"},"modified":"2017-12-20T17:53:32","modified_gmt":"2017-12-20T09:53:32","slug":"ssh-client-config-to-prevent-ssh-pip-broken","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/ssh-client-config-to-prevent-ssh-pip-broken.html","title":{"rendered":"\u914d\u7f6eSSH\u5ba2\u6237\u7aef\u9632\u6b62\u95f2\u7f6eSSH\u65ad\u7ebf"},"content":{"rendered":"<p>\u56e0\u4e3a\u5de5\u4f5c\u5173\u7cfb\uff0c\u7ecf\u5e38\u8981\u4ece\u672c\u5730\u5f00\u53d1\u673a\u5668\u8fde\u63a5\u7ebf\u4e0a\u7684\u6d4b\u8bd5\u670d\u52a1\u5668\u3001\u6b63\u5f0f\u670d\u52a1\u5668\u4ee5\u53ca\u79c1\u4eba\u7684\u5404\u4e2aVPS\uff0c\u4f46\u6700\u8fd1\u8fd9\u6bb5\u65f6\u95f4\u4e0d\u77e5\u9053\u4ece\u4ec0\u4e48\u65f6\u5019\u5f00\u59cb\uff0c\u8fde\u63a5\u6210\u529f\u4e4b\u540e\u7684 SSH \u4f1a\u8bdd\u53ea\u8981\u95f2\u7f6e\u51e0\u5206\u949f\u5c31\u51fa\u73b0\u65ad\u7ebf\u60c5\u51b5\uff0c\u6bcf\u6b21\u8981\u7528\u7684\u65f6\u5019\u90fd\u9700\u8981\u91cd\u65b0\u8fde\u63a5\uff0c\u4e8b\u60c5\u591a\u7684\u65f6\u5019\u771f\u7684\u641e\u5f97\u633a\u607c\u706b\u7684\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u7f51\u7edc\u73af\u5883\u4e3a\u6df1\u5733\u7535\u4fe1100MB\uff0cSSH \u5ba2\u6237\u7aef\u4e3a macOS \u4e2d\u5b89\u88c5\u7684 iTerm2 \uff0c\u76f4\u63a5\u7528 SSH \u547d\u4ee4\u8fde\u63a5\u3002<\/p>\n<p>\u6211\u7684\u4e60\u60ef\u662f\uff0c\u8981\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0c\u6253\u5f00\u4e00\u4e2a Tab \u8fde\u597d\u7136\u540e\u8be5\u5199\u4ee3\u7801\u8be5\u64cd\u4f5c\u6570\u636e\u5e93\u5c31\u64cd\u4f5c\u6570\u636e\u5e93\uff0c\u9700\u8981\u7528\u7684\u65f6\u5019\u518d\u5207\u6362\u56de\u6765\u3002\u4e00\u76f4\u8fd9\u4e48\u7528\u7684\u90fd\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u8fd9\u51e0\u5929\u4e0d\u77e5\u9053\u662f\u7f51\u7edc\u539f\u56e0\u8fd8\u662f\u4ec0\u4e48\u60c5\u51b5\uff0c\u7ecf\u5e38\u95f2\u7f6e\u51e0\u5206\u949f\u5c31\u65ad\u5f00\u4e86\u3002<\/p>\n<p>\u5982\u679c\u8bf4\u662f\u56fd\u5916\u7684\u673a\u5668\u6211\u4e5f\u5c31\u5047\u88c5\u7406\u89e3\u4e86\uff0c\u4f46\u662f\u6211\u6df1\u5733\u672c\u5730\u8fde\u63a5\u6df1\u5733\u533a\u57df\u7684\u963f\u91cc\u4e91\u90fd\u80fd\u7ed9\u6211\u65ad\u5f00\uff0c\u8fd9\u6211\u5b9e\u5728\u4e0d\u80fd\u5fcd\uff01<\/p>\n<p>\u653e\u72d7\u641c\u4e86\u4e00\u6ce2\uff0c\u9664\u4e86\u4f7f\u7528 screen\u3001tmux \u7b49\u65b9\u5f0f\u5916\uff0c\u53d1\u73b0\u6709\u4e09\u79cd\u89e3\u51b3\u529e\u6cd5\uff0c\u4e00\u79cd\u662f\u5efa\u7acb\u8fde\u63a5\u7684\u65f6\u5019\u52a0\u4e0a\u53c2\u6570\uff0c\u7b2c\u4e8c\u79cd\u662f\u914d\u7f6e\u672c\u5730 SSH \u5ba2\u6237\u7aef\uff0c\u53e6\u4e00\u79cd\u662f\u914d\u7f6e\u670d\u52a1\u5668\u7aef\u3002<\/p>\n<p>\u6beb\u65e0\u7591\u95ee\uff0c\u80af\u5b9a\u662f\u7b2c\u4e8c\u79cd\u914d\u7f6e\u672c\u5730 SSH \u6700\u65b9\u4fbf\u4e86\uff0c\u4e00\u6b21\u914d\u7f6e\uff0c\u8fde\u63a5\u591a\u5c11\u4e2a\u670d\u52a1\u5668\u90fd\u6ca1\u95ee\u9898\uff0c\u8001\u6837\u5b50\uff0c\u4e0a\u4ee3\u7801\u3002<\/p>\n<p>\u6253\u5f00\u672c\u5730 SSH \u914d\u7f6e\u6587\u4ef6\uff0c\u9ed8\u8ba4\u662f<strong><em>~\/.ssh\/config<\/em><\/strong>\uff0c\u5230\u91cc\u9762\u589e\u52a0\u4e00\u884c\uff1a<\/p>\n<blockquote><p>\n  ServerAliveInterval 10\n<\/p><\/blockquote>\n<p>\u540e\u9762\u768410\u5355\u4f4d\u662f\u79d2\uff0c\u8868\u793a\u5404\u591a\u5c11\u79d2\u53d1\u9001\u4e00\u4e2a\u6570\u636e\u5305\u4fdd\u6301\u8fde\u63a5\uff0c\u6211\u8fd9\u91cc\u9009\u4e8610\u79d2<\/p>\n<p>\u9000\u51fa\uff0c\u4fdd\u5b58\u4e4b\u540e\uff0c\u518d\u7528 SSH \u547d\u4ee4\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u5c31\u7b97\u9694\u4e8630\u5206\u949f\u5728\u64cd\u4f5c\u53d1\u73b0\u4e5f\u6ca1\u65ad\u7ebf\u4e86\uff0c\u8fd9\u62db\u6cbb\u597d\u4e86\u6211\u591a\u5e74\u7684\u5f3a\u8feb\u75c7\u554a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u5de5\u4f5c\u5173\u7cfb\uff0c\u7ecf\u5e38\u8981\u4ece\u672c\u5730\u5f00\u53d1\u673a\u5668\u8fde\u63a5\u7ebf\u4e0a\u7684\u6d4b\u8bd5\u670d\u52a1\u5668\u3001\u6b63\u5f0f\u670d\u52a1\u5668\u4ee5\u53ca\u79c1\u4eba\u7684\u5404\u4e2aVPS\uff0c\u4f46\u6700\u8fd1\u8fd9\u6bb5\u65f6\u95f4\u4e0d\u77e5\u9053\u4ece &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/ssh-client-config-to-prevent-ssh-pip-broken.html\"> <span class=\"screen-reader-text\">\u914d\u7f6eSSH\u5ba2\u6237\u7aef\u9632\u6b62\u95f2\u7f6eSSH\u65ad\u7ebf<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[99],"class_list":["post-1730","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ssh"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=1730"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1730\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}