我家裡電腦在 ~/.profile 底下加上下面指令可以成功建起 tunnel
nohup autossh -M 23456 -NfR 8888:localhost:22 [email protected] &
帶是在公司一樣的ubuntu 16.04 下無法成功建立 tunnel
後來我用 ps aux | grep '8888' 發現家裡的會有下面兩行
2425 0.0 0.0 6424 88 ? Ss 18:52 0:00
/usr/lib/autossh/autossh -M 23456 -NR 8888:localhost:22
[email protected]
2426 0.0 0.0 46968 5148 ? S 18:52 0:00 /usr/bin/ssh
-L 23456:127.0.0.1:23456 -R 23456:127.0.0.1:23457 -NR 8888:localhost:22
[email protected]
可是公司電腦不會出現下面這行
/usr/bin/ssh
-L 23456:127.0.0.1:23456 -R 23456:127.0.0.1:23457 -NR 8888:localhost:22
[email protected]
但是我手動下 nohup autossh -M 23456 -NfR 8888:localhost:22 [email protected] &
兩行又有出現可以正常建起 tunnel
請問這問題可能是什麼原因?
謝謝
--
nohup autossh -M 23456 -NfR 8888:localhost:22 [email protected] &
帶是在公司一樣的ubuntu 16.04 下無法成功建立 tunnel
後來我用 ps aux | grep '8888' 發現家裡的會有下面兩行
2425 0.0 0.0 6424 88 ? Ss 18:52 0:00
/usr/lib/autossh/autossh -M 23456 -NR 8888:localhost:22
[email protected]
2426 0.0 0.0 46968 5148 ? S 18:52 0:00 /usr/bin/ssh
-L 23456:127.0.0.1:23456 -R 23456:127.0.0.1:23457 -NR 8888:localhost:22
[email protected]
可是公司電腦不會出現下面這行
/usr/bin/ssh
-L 23456:127.0.0.1:23456 -R 23456:127.0.0.1:23457 -NR 8888:localhost:22
[email protected]
但是我手動下 nohup autossh -M 23456 -NfR 8888:localhost:22 [email protected] &
兩行又有出現可以正常建起 tunnel
請問這問題可能是什麼原因?
謝謝
--
All Comments