在Linux下安裝autossh的具體步驟
autossh 是一款開源工具,可以幫助管理SSH會話、自動重連和停止轉發流量。autossh會假定目標主機已經設定無密碼SSH登陸,以便autossh可以重連斷開的`SSH會話而不用用戶操作。
只要你建立反向SSH隧道或者掛載基於SSH的遠程文件夾,autossh遲早會派上用場。基本上只要需要維持SSH會話,autossh肯定是有用的。
下面有許多linux發行版autossh的安裝方法。
Debian 或 Ubuntu 系統
autossh已經加入基於Debian系統的基礎庫,所以可以很方便的安裝。
代碼如下:
$ sudo apt-get install autossh
Fedora 系統
Fedora庫同樣包含autossh包,使用yum安裝。
代碼如下:
$ sudo yum install autossh
CentOS 或 RHEL 系統
CentOS/RHEL 6 或早期版本, 需要開啓第三庫Repoforge庫, 然後才能使用yum安裝.
代碼如下:
$ sudo yum install autossh
CentOS/RHEL 7以後,autossh 已經不在Repoforge庫中. 你需要從源碼編譯安裝(例子在下面)。
Arch Linux 系統
代碼如下:
$ sudo pacman -S autossh
Debian 或 Ubuntu 系統中從源碼編譯安裝
如果你想要使用最新版本的autossh,你可以自己編譯源碼安裝
代碼如下:
$ sudo apt-get install gcc make
$ wget
$ tar -xf
$ cd autossh-1.4e
$ ./configure
$ make
$ sudo make install
CentOS, Fedora 或 RHEL 系統中從源碼編譯安裝
在CentOS/RHEL 7以後,autossh不在是預編譯包。所以你不得不從源碼編譯安裝。
代碼如下:
$ sudo yum install wget gcc make
$ wget
$ tar -xf
$ cd autossh-1.4e
$ ./configure
$ make
$ sudo make install
相關文章
-
MS SQL Server Management Studio Express安裝圖文具體步驟
Microsoft sql server Management Studio Express (SSMSE) 是一種免費、易用的圖形管理工具,用於管理 SQL Server 2005 Express Edition 和具有高級服務的 SQL Server 2005 Express Edition。SSMSE 還可以管理任何版本 -
Scientists Build Robots to Live With Humans英語美文
Industrial robots are already working in many factories around the world and in our homes, for instance as smart vacuum cleaners. Scientists say in a few years we will start seeing so-called "social r -
Oracle、Linux和CentOS安裝配置步驟
羽泉組合成軍十多年,其中陳羽凡的妻子白百合早早曝光,如今她事業一帆風順,夫妻還生下了一個兒子。雖然夫妻恩愛,但還是屢次被傳離婚。而胡海泉的另一半始終未曾有消息,近日有媒體稱拍到他與妻女出行的場面。近年來網上有胡 -
高中英語Unit 3A taste of English humour的教案設計
Teaching aims:cDifferent types of humour; a taste of English humourⅡul words and expressions:Nouns: slide, skin, content, particular, failure, difficulty, boil, snowstorm, bottom, mouthful, Switzerla -
在linux系統中安裝virtualbox增強功能(增強包)的詳細步驟是什麼
一年一度的動物馬拉松長跑決賽將在美麗的森林舉行。經過激烈角逐,進入決賽的是小馬和小兔子,小馬在半決賽中打破了動物馬拉松的世界紀錄。森林電視臺主持人鳳凰採訪了小馬,小馬自傲地說:我日行千里,夜行八百,兔子身材矮小,不 -
Chinas Liu to seek injury advice in US soon英語作文
hinas world 110m hurdles champion liu iang works out at a training session in inzhuang, shanghai, september 24, .[osports]the 25-year-old athens gold medallist will consult medical eperts in three cit -
基於ubuntu下nginx+php+mysql安裝配置
1、更新1sudoapt-getupdate2、安裝nginx1sudoapt-getintsallnginxUbuntu安裝之後的文件結構大致爲:*所有的配置文件都在/etc/nginx下,並且每個虛擬主機已經安排在了/etc/nginx/sites-available下*程序文件在/usr/sbin -
如何解決ghost安裝系統本地硬盤顯示invalid switch fmount問題
本地安裝系統非常方便正常所有的機子都能夠正常支持,但是根據不同的系統情況和硬件情況難免會出現一些安裝錯誤,本文介紹win7 64位旗艦版本地硬盤ghost安裝系統提示invalid switch fmount快速解決方法!其實出現這樣的安 -
託福英語寫作範文:Examinations exert a pernicious influence on educat
We might marvel at the progress made in every field of study, but the methods of testing a person’s knowledge and ability remain as primitive as ever they were. It really is extraordinary that after -
六下英語Unit5Ourearthlookslikethisfromspace教案
教 學 準 備Wrd cards, Tpe,CAI, Drawing Instruent課 時 安 排共三課時課 時 安 排教學過程設計和安排Teaching steps:Step 1 Waring uptings.T: Class begins. T: Gd ing. Ss: Gd ing.T: Glad t eet u. Ss: Glad t e