autossh 開機自動 - Linux

By Eartha
at 2017-07-07T19:00
at 2017-07-07T19:00
Table of Contents
我家裡電腦在 ~/.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
請問這問題可能是什麼原因?
謝謝
--
Tags:
Linux
All Comments

By Edith
at 2017-07-11T16:40
at 2017-07-11T16:40

By Megan
at 2017-07-14T02:10
at 2017-07-14T02:10

By Carolina Franco
at 2017-07-19T00:50
at 2017-07-19T00:50

By Iris
at 2017-07-23T06:27
at 2017-07-23T06:27

By John
at 2017-07-25T04:18
at 2017-07-25T04:18

By Susan
at 2017-07-26T09:30
at 2017-07-26T09:30

By Edward Lewis
at 2017-07-29T14:06
at 2017-07-29T14:06

By Charlie
at 2017-07-30T20:06
at 2017-07-30T20:06

By Ula
at 2017-08-04T05:55
at 2017-08-04T05:55

By Edwina
at 2017-08-05T10:32
at 2017-08-05T10:32

By Rachel
at 2017-08-07T18:45
at 2017-08-07T18:45

By Bethany
at 2017-08-11T03:33
at 2017-08-11T03:33

By Harry
at 2017-08-14T17:14
at 2017-08-14T17:14

By John
at 2017-08-19T10:13
at 2017-08-19T10:13

By Steve
at 2017-08-19T18:08
at 2017-08-19T18:08

By Joe
at 2017-08-24T05:50
at 2017-08-24T05:50
Related Posts
VMware CentOS7 網路問題

By Poppy
at 2017-07-05T23:40
at 2017-07-05T23:40
Pcmanx@linux mint 18.2無法顯示日文

By Quintina
at 2017-07-05T21:20
at 2017-07-05T21:20
Ubuntu libstdc++.so.6 被自動刪除

By Megan
at 2017-07-05T19:55
at 2017-07-05T19:55
Ubuntu 16.04瀏覽某些網頁速度超慢

By Elvira
at 2017-07-05T16:14
at 2017-07-05T16:14
server是如何達成大量部署的

By Poppy
at 2017-07-05T01:27
at 2017-07-05T01:27