跳轉到內容
View in the app

A better way to browse. Learn more.

PHP論壇人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SSH斷線 / SSH金鑰遺失 / Socket error Event: 32 Error: 10053

精選回覆

發表於

SSH斷線 / SSH金鑰遺失 / Socket error Event: 32 Error: 10053

 

VPS連線不穩定,SSH突然斷線,顯示錯誤消息

Socket error Event: 32 Error: 10053.

Connection closing...Socket close.

 

SSH再次連線,結果跳出需要同意SSH金鑰 (例如:reinstall VPS,第一次SSH登入時,須要同意SSH金鑰的那個畫面)

SSH root登入,重新填入密碼,結果無效,無法登入

SSH開開關關幾次後,終於是以原密碼直接登入

 


---------------------------------------------------------
[取消勾選] 轉寄X11連線到
---------------------------------------------------------

Xshell -> SSH -> 通道 -> [取消勾選] 轉寄X11連線到

 


---------------------------------------------------------
修改SSH超時斷開
---------------------------------------------------------

vi /etc/ssh/sshd_config

將 ClientAliveInterval 的值修改為 60 或更高,例如 180

ClientAliveInterval 180


儲存並離開
:wq

 

---------------------------------------------------------
由於突然斷線,SSH密鑰會消失,權限會更改
---------------------------------------------------------

進入SSH密鑰目錄
cd /etc/ssh

更改密鑰權限
chmod 400 ./*

注意:密鑰權限改400之後,如果想要再修改ClientAliveInterval的時間,vi會提示 "唯讀",你需要再改一次權限為 chmod 644 ./*

 

 

----------------
重開機
----------------

reboot

 

 

應該SSH還是會突然斷線,但至少沒有那麼頻繁斷線,而且不會SSH金鑰遺失

 

本文章最後於,由Jack編輯

建立帳號或登入後發表意見

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.