使用ssh來登入其它linux機器

來源:互聯網
上載者:User

首先安裝openvpn軟體

sudo apt-get install openvpn

此命令下去後、已經預設安裝了用戶端和服務端、

 

由於莪們只是用來串連其它openvpn伺服器、故不再述說伺服器的設定、直接講用戶端

安裝好後、預設的位置是在 /etc/openvpn/、把伺服器產生的crt、csr、key檔案都放在這個目錄下

然後再把範例檔案拷貝過來

sudo cp /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn
1 remote vpn.example.com 1194
2 cert hostname.crt
3 key hostname.key

然後再編輯一下這個client.conf檔案、把vpn.example.com改成邇的openvpn的伺服器位址

hostanme.crt和hostname.key改成邇的crt和key名稱、改寫完後、再重啟一下openvpn的串連就可以了

sudo /etc/init.d/openvpn restart

 

 

參考文章:

https://help.ubuntu.com/10.04/serverguide/C/openvpn.html

http://linux.vbird.org/linux_server/0310telnetssh.php#remote_access_what

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.