
當我使用 mosh 連線時出現以下錯誤:
Mosh: You have 2 detached Mosh sessions on this server, with PIDs:
- mosh [3700]
- mosh [31091]
我如何才能恢復這些會話之一?
答案1
你不能。一旦客戶端掛掉,您就無法重新連線到伺服器會話。
https://github.com/keithw/mosh/issues/394
出於安全原因,您只能從對應的 mosh-client 還原與 mosh-server 的連線。如果用戶端當機(例如,使用者在用戶端斷網時退出用戶端),則唯一的選擇是終止具有該 PID 的伺服器(例如,kill 12726)。