autossh 開機自動 - Linux
![Dorothy avatar](/img/girl1.jpg)
By Dorothy
at 2017-07-13T21:01
at 2017-07-13T21:01
Table of Contents
※ 引述《yshihyu (yshihyu)》之銘言:
: 我家裡電腦在 ~/.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
: 請問這問題可能是什麼原因?
: 謝謝
-----------------------------------------------------------------------------
我目前發現怪現狀是有時候可以成功 Connection established
就是 Connection refused失敗後再多試幾次連線 command
ssh -vvv shihyu@localhost -p 7777
又可以成功 Connection established
請問這可能是什麼原因
下面是Connection established & Connection refused 訊息
https://gist.github.com/anonymous/3eb0f4f9d36523862684c9b0293a8bf3
謝謝
--
: 我家裡電腦在 ~/.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
: 請問這問題可能是什麼原因?
: 謝謝
-----------------------------------------------------------------------------
我目前發現怪現狀是有時候可以成功 Connection established
就是 Connection refused失敗後再多試幾次連線 command
ssh -vvv shihyu@localhost -p 7777
又可以成功 Connection established
請問這可能是什麼原因
下面是Connection established & Connection refused 訊息
https://gist.github.com/anonymous/3eb0f4f9d36523862684c9b0293a8bf3
謝謝
--
Tags:
Linux
All Comments
![Caroline avatar](/img/girl2.jpg)
By Caroline
at 2017-07-16T06:25
at 2017-07-16T06:25
![Ivy avatar](/img/girl3.jpg)
By Ivy
at 2017-07-20T13:26
at 2017-07-20T13:26
Related Posts
語系問題
![Skylar Davis avatar](/img/cat4.jpg)
By Skylar Davis
at 2017-07-13T20:38
at 2017-07-13T20:38
Virtualbox裡ubuntu 視窗貼齊的問題
![Vanessa avatar](/img/woman-ring.jpg)
By Vanessa
at 2017-07-13T20:14
at 2017-07-13T20:14
怎麼用docker在ubuntu上打臺服lol
![Isabella avatar](/img/girl.jpg)
By Isabella
at 2017-07-13T12:23
at 2017-07-13T12:23
vnc 閒置時間
![Iris avatar](/img/girl5.jpg)
By Iris
at 2017-07-13T09:43
at 2017-07-13T09:43
iconv轉編碼後遇到的問題
![George avatar](/img/cat4.jpg)
By George
at 2017-07-13T07:58
at 2017-07-13T07:58