
我的 Ubuntu 機器上有 x2go 伺服器。當我在 Windows 電腦上啟動 x2goclient 以啟動 Ubuntu 圖形桌面時,我看到 Ubuntu 電腦上啟動了第二個 ssh-agent 進程,即使已經有一個 ssh-agent 進程正在運行(並且它包含一個密鑰) 。
為什麼會啟動第二個 ssh-agent 進程,有什麼方法可以阻止它?
答案1
x2goserver「製作」ssh 隧道轉送。在腳本 /usr/bin/x2gostartagent 中
X2GO_PORT='7474'# per default it is port 50, but if you have more than one
# x2goserver running, give every server a different port range
# otherwise every time you open an session, the previous session
# will disappear