[問題] 離開SSH但繼續執行X程式
user@local_host$ ssh -X remote_host
Welcome to remote_host!
user@remote_host$ xeyes &
[1] 311
...(假設)此時網路突然斷線...!!
Connection to remote_host closed. // local_host接收到的x client程式(xeyes)被關掉了
user@localhost$
問題一:
如何在關閉SSH session後不要關閉X client程式 而是讓他繼續執行?
問題二:
如果問題一是做不到的 改用vnc/xrdp能做到嗎
(也就是關閉vnc/xrdp連線後 在遠端桌面開啟的程式依然繼續執行)
問題三:
根據鳥哥的說法(http://linux.vbird.org/linux_server/0310telnetssh.php )
vnc的資料傳輸過程沒有加密 xrdp則有加密
但其實xrdp是以加密的過程運作vnc
那為何常常聽到人家說vnc比較慢 xrdp比較快呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.131
→
08/02 02:03, , 1F
08/02 02:03, 1F
不行的樣子 不管有沒有用screen 只要一斷線 remote_host端就會跑出這個訊息:
user@remote_host$XIO: fatal IO error 11 (資源暫時無法取得) on X server "localhost:11.0"
after 94 requests (94 known processed) with 0 events remaining.
[1]+ Exit 1 xeyes
推
08/02 02:10, , 2F
08/02 02:10, 2F
我說的"斷線"是指SSH session斷線 不是screen被detach
你可以試試看 我試的結果就是上面那個訊息
※ 編輯: Holocaust123 來自: 140.112.30.131 (08/02 02:12)
→
08/02 06:51, , 3F
08/02 06:51, 3F
→
08/02 06:53, , 4F
08/02 06:53, 4F
→
08/02 10:10, , 5F
08/02 10:10, 5F
→
08/02 10:11, , 6F
08/02 10:11, 6F
→
08/02 10:11, , 7F
08/02 10:11, 7F
→
08/02 10:12, , 8F
08/02 10:12, 8F
→
08/02 10:17, , 9F
08/02 10:17, 9F
→
08/02 16:13, , 10F
08/02 16:13, 10F
→
08/02 16:14, , 11F
08/02 16:14, 11F
→
08/03 20:09, , 12F
08/03 20:09, 12F
討論串 (同標題文章)