用terminal做ssh連線會斷線 - MAC

By Valerie
at 2014-06-23T19:45
at 2014-06-23T19:45
Table of Contents
※ 引述《Tashuko (嗯....)》之銘言:
: 想請問一下
: 我開terminal想用ssh連到我的工作站工作
: 但不知道為何會一直出現 write failed broken pipe的訊息,然後就斷了
: google了一下發現很多人都會這樣
: 但網路上的解法是去~/.ssh內新增cofig檔
: 然後裡面打
: ServerAliveInterval 120
: ServerAliveCountMax 5
: 但依舊法解決阿
: 也試過去/etc/ssh_config內新增這兩行,結果也是不行
: 不知道有沒有甚麼其它的方法阿!
: 感激不盡
以下是我的 /etc/ssh_config 內容,我只列出取消註解的地方...
Host *
SendEnv LANG LC_*
HostbasedAuthentication no
GSSAPIAuthentication no
GSSAPITrustDNS no
CheckHostIP no
StrictHostKeyChecking no
Protocol 2,1
ServerAliveInterval 60
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
Host *
XAuthLocation /opt/X11/bin/xauth
=================================================
其中 ServerAliveInterval 60 這一行一般人碰到被server踢掉去google求救都會
看到普遍給這個解答,但後來我發現我連接學校的工作站一樣被踢...多補上那幾行
就ok了。
ps. 如果你也是習慣用終端機工作的人可以交流一下XD shell我目前是用zsh,自動補完
功能比 bash 強大很多...
--
◤ ◥ ◢ ◣
傑米,炸掉它吧。 ⊙▁⊙─ ─⊙▂⊙ 碰到問題,用C4就對了!
╰ ∕皿﹨ ◥皿◤ ╯
◥█◤◢ ◥ ︶◤
Adam Savage ◤ ︶ ◥◤ ﹨▼∕◥ James Hyneman
MYTHBUSTERS ◥ ◤\◥ by dajidali
--
: 想請問一下
: 我開terminal想用ssh連到我的工作站工作
: 但不知道為何會一直出現 write failed broken pipe的訊息,然後就斷了
: google了一下發現很多人都會這樣
: 但網路上的解法是去~/.ssh內新增cofig檔
: 然後裡面打
: ServerAliveInterval 120
: ServerAliveCountMax 5
: 但依舊法解決阿
: 也試過去/etc/ssh_config內新增這兩行,結果也是不行
: 不知道有沒有甚麼其它的方法阿!
: 感激不盡
以下是我的 /etc/ssh_config 內容,我只列出取消註解的地方...
Host *
SendEnv LANG LC_*
HostbasedAuthentication no
GSSAPIAuthentication no
GSSAPITrustDNS no
CheckHostIP no
StrictHostKeyChecking no
Protocol 2,1
ServerAliveInterval 60
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
Host *
XAuthLocation /opt/X11/bin/xauth
=================================================
其中 ServerAliveInterval 60 這一行一般人碰到被server踢掉去google求救都會
看到普遍給這個解答,但後來我發現我連接學校的工作站一樣被踢...多補上那幾行
就ok了。
ps. 如果你也是習慣用終端機工作的人可以交流一下XD shell我目前是用zsh,自動補完
功能比 bash 強大很多...
--
◤ ◥ ◢ ◣
傑米,炸掉它吧。 ⊙▁⊙─ ─⊙▂⊙ 碰到問題,用C4就對了!
╰ ∕皿﹨ ◥皿◤ ╯
◥█◤◢ ◥ ︶◤
Adam Savage ◤ ︶ ◥◤ ﹨▼∕◥ James Hyneman
MYTHBUSTERS ◥ ◤\◥ by dajidali
--
Tags:
MAC
All Comments

By Damian
at 2014-06-27T21:29
at 2014-06-27T21:29

By Bethany
at 2014-06-29T21:06
at 2014-06-29T21:06

By Iris
at 2014-07-03T00:47
at 2014-07-03T00:47

By Linda
at 2014-07-07T14:53
at 2014-07-07T14:53

By Madame
at 2014-07-09T14:18
at 2014-07-09T14:18

By Ina
at 2014-07-11T02:22
at 2014-07-11T02:22

By Kelly
at 2014-07-11T10:06
at 2014-07-11T10:06

By Lily
at 2014-07-14T09:29
at 2014-07-14T09:29

By Thomas
at 2014-07-15T10:16
at 2014-07-15T10:16

By Isla
at 2014-07-17T19:20
at 2014-07-17T19:20

By Agnes
at 2014-07-18T02:51
at 2014-07-18T02:51

By Kristin
at 2014-07-21T12:13
at 2014-07-21T12:13

By Mason
at 2014-07-24T08:14
at 2014-07-24T08:14

By Suhail Hany
at 2014-07-25T20:16
at 2014-07-25T20:16

By Aaliyah
at 2014-07-26T16:59
at 2014-07-26T16:59

By Victoria
at 2014-07-31T16:02
at 2014-07-31T16:02

By Lucy
at 2014-08-04T13:21
at 2014-08-04T13:21

By Audriana
at 2014-08-07T06:49
at 2014-08-07T06:49

By Hedy
at 2014-08-12T06:27
at 2014-08-12T06:27

By Catherine
at 2014-08-13T02:21
at 2014-08-13T02:21

By Rae
at 2014-08-16T17:00
at 2014-08-16T17:00
Related Posts
用iTunes同步歌單漏歌

By Damian
at 2014-06-23T11:16
at 2014-06-23T11:16
預覽程式一直當機

By Margaret
at 2014-06-23T00:01
at 2014-06-23T00:01
HDMI 接電視但電影沒有對話聲音

By Aaliyah
at 2014-06-22T23:40
at 2014-06-22T23:40
香港特客製mba 現貨

By Anonymous
at 2014-06-22T22:17
at 2014-06-22T22:17
facebook on Safari登出

By Quintina
at 2014-06-22T22:00
at 2014-06-22T22:00