{"id":1975,"date":"2021-06-11T16:25:08","date_gmt":"2021-06-11T08:25:08","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=5"},"modified":"2021-06-11T16:25:08","modified_gmt":"2021-06-11T08:25:08","slug":"ssh-broken-pipe","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/ssh-broken-pipe.html","title":{"rendered":"\u89e3\u51b3SSH\u5ba2\u6237\u7aefBroken pipe\u95ee\u9898"},"content":{"rendered":"\n<p>\u7ecf\u5e38\u4f7f\u7528\u547d\u4ee4\u884c\u7684\u5c24\u5176\u662f\u6211\u4eec\u73a9VPS\u3001\u4e91\u670d\u52a1\u5668\u7684\uff0cSSH\u534f\u8bae\u4e0d\u53ef\u907f\u514d\u4f1a\u7528\u5230\uff0c\u6709\u7684\u65f6\u5019\u5df2\u7ecf\u5df2\u7ecf\u767b\u5f55\u7684SSH\u8fde\u63a5\uff0c\u4e00\u6bb5\u65f6\u95f4\u6ca1\u64cd\u4f5c\u5c31\u4f1a\u51fa\u73b0\u65e0\u54cd\u5e94\u6216\u8005\u663e\u793a\u65ad\u5f00\u7684\u60c5\u51b5\uff0c\u65ad\u5f00\u4e4b\u540e\u9700\u8981\u91cd\u65b0\u767b\u5f55\uff0c\u6b21\u6570\u591a\u4e86\u662f\u771f\u7684\u70e6\uff0c\u6240\u4ee5\u627e\u4e86\u4e2a\u529e\u6cd5\u907f\u514d\u957f\u65f6\u95f4\u65e0\u64cd\u4f5c\u6389\u7ebf\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">SSH\u65ad\u7ebf\u8f93\u51fa<\/h1>\n\n\n\n<p>\u4ee5\u6211\u81ea\u5df1\u9047\u5230\u7684\u5b9e\u9645\u60c5\u51b5\u6765\u8bf4\uff0c\u8fd9\u662f\u767b\u5f55\u4e4b\u540e\u65e0\u64cd\u4f5c\u65ad\u7ebf\u65f6\u7684\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ssh user@test.cloudbool.com\nuser@test.cloudbool.com's password:\nLinux HostdareHow 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64\n\nThe programs included with the Debian GNU\/Linux system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in \/usr\/share\/doc\/*\/copyright.\n\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\npermitted by applicable law.\nLast login: Wed Jun  9 22:33:32 2021 from 101.x.xx.xxx\nuser@test.cloudbool.com:~$\nuser@test.cloudbool.com:~$ client_loop: send disconnect: Broken pipe<\/code><\/pre>\n\n\n\n<p>\u5185\u7f51\u6216\u8005\u56fd\u5185\u7684\u4e3b\u673a\u8fd8\u597d\uff0c\u8981\u662f\u5927\u9646\u4ee5\u5916\u7684\u4e3b\u673a\uff0c\u56e0\u4e3a\u7f51\u7edc\u62e5\u5835\u3001\u9632\u706b\u5899\u7ec8\u7aef\u8fde\u63a5\u6216\u8005\u4e22\u5305\u7b49\u60c5\u51b5\uff0c\u9ed8\u8ba4\u7684SSH\u914d\u7f6e\u7ecf\u5e38\u4f1a\u9047\u5230\u5df2\u767b\u5f55\u7684SSH\u65ad\u5f00\u7684\u60c5\u51b5\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u89e3\u51b3\u529e\u6cd5<\/h1>\n\n\n\n<p>\u5176\u5b9e\u89e3\u51b3\u529e\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4fee\u6539\u4e0bSSH\u7684\u914d\u7f6e\u8ba9\u672c\u5730\u5ba2\u6237\u7aef\u5b9a\u65f6\u5411\u670d\u52a1\u7aef\u53d1\u9001\u6570\u636e\u5305\u4fdd\u6301\u8fde\u63a5\u5c31\u597d\u4e86\u3002<\/p>\n\n\n\n<p>Windows\u3001macOS\u53caLinux\u7cfb\u7edf\uff0c\u76f4\u63a5\u4fee\u6539home\u76ee\u5f55\u4e0b\u9762\u7684<strong>~\/.ssh\/config<\/strong>\u6587\u4ef6\uff0c\u5982\u679c\u8fd9\u4e2a\u6587\u4ef6\u4e0d\u5b58\u5728\u5219\u65b0\u5efa\u4e00\u4e2a\uff0c\u7136\u540e\u5728\u91cc\u9762\u6dfb\u52a0\u4e00\u884c\u914d\u7f6e\u5c31\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ServerAliveInterval 10<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e2a10\u662f\u5b9a\u65f6\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u79d2\uff0c\u8003\u8651\u5230\u6709\u7684\u65f6\u5019\u9700\u8981\u8fde\u63a5\u6d77\u5916\u7684\u4e3b\u673a\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u5c0f\u4e00\u70b9\u66f4\u597d\u4fdd\u6301SSH\u5728\u7ebf\u3002<\/p>\n\n\n\n<p>\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u80fd\u53ea\u9002\u5408\u4f7f\u7528\u7cfb\u7edf\u81ea\u5e26\u7684SSH\u5ba2\u6237\u7aef\uff0c\u4e5f\u5c31\u662f\u901a\u8fc7cmd\/Terminal\u7b49\u7ec8\u7aef\u5de5\u5177\u76f4\u63a5\u4f7f\u7528ssh\u547d\u4ee4\u8fde\u63a5\u7684\uff0c\u5982\u679c\u662f\u4f7f\u7528Termius\u6216\u8005Mobaxterm\u8fd9\u79cd\u53ef\u80fd\u9700\u8981\u5355\u72ec\u8bbe\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u5e38\u4f7f\u7528\u547d\u4ee4\u884c\u7684\u5c24\u5176\u662f\u6211\u4eec\u73a9VPS\u3001\u4e91\u670d\u52a1\u5668\u7684\uff0cSSH\u534f\u8bae\u4e0d\u53ef\u907f\u514d\u4f1a\u7528\u5230\uff0c\u6709\u7684\u65f6\u5019\u5df2\u7ecf\u5df2\u7ecf\u767b\u5f55\u7684SSH\u8fde\u63a5\uff0c\u4e00 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/ssh-broken-pipe.html\"> <span class=\"screen-reader-text\">\u89e3\u51b3SSH\u5ba2\u6237\u7aefBroken pipe\u95ee\u9898<\/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-1975","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ssh"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1975","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=1975"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1975\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}