1. 程式人生 > >優雅地亂玩Linux-6-Chrome端SSH插件

優雅地亂玩Linux-6-Chrome端SSH插件

block tle ring comm 安全網 分享 bst ould itl

文章最初發表於szhshp的第三邊境研究所
轉載請註明

優雅地亂玩Linux-6-Chrome端SSH插件

最近註冊了個AWS,免費一年,一年內可以各種亂玩~

從自己的電腦連接雲主機一般需要SSH這樣的東西。既然有如此機會,幹脆系統性學習下SSH:

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. The best known example application is for remote login to computer systems by users.

SSH provides a secure channel over an unsecured network in a client-server architecture, connecting an SSH client application with an SSH server. Common applications include remote command-line login and remote command execution, but any network service can be secured with SSH. The protocol specification distinguishes between two major versions, referred to as SSH-1 and SSH-2.

The most visible application of the protocol is for access to shell accounts on Unix-like operating systems, but it sees some limited use on Windows as well. In 2015, Microsoft announced that they would include native support for SSH in a future release.

SSH是一種加密的網絡協議,用於在非安全網絡下建立到網絡設備的安全鏈接。SSH被廣泛用於遠程計算機的命令執行,類似VPS,雲主機等設備都需要SSH進行操作。

SSH連接

建立SSH連接有多種方式:

  1. Linux/Unix 系統下Terminal直接創建
  2. Linux/Unix/Windows 系統下使用三方軟件創建
  3. 瀏覽器中創建,需要JRE,並且很多瀏覽器已經不支持
  4. Chrome中使用插件創建

主要說說Chrome中插件的方案

Secure Shell:在Chrome中使用SSH

首先下載個插件:https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hl=en-US

基本上看到就知道如何使用了

技術分享

EC2在Secure Shell中的認證問題: NaCl plugin exited with status code 255

EC2一般使用.pem的Private Key進行認證,但是在使用Secure Shell中經常會遇到個問題:

Host key verification failed.
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?

看很多討論說原因是:SSH需要個Public Key,但是我們只有一個Private Key

很多Solution說需要生成一個Publick Key之類的,但是實際上Public Key這兒並沒有任何要求,我們只需要將自己的.pem復制一份然後擴展名改成.pub即可

比如自己的Private Key是123.pem那麽復制一份然後命名為123.pen.pub, 然後Import的時候都選中即可

這看起來是個偏方不過確實有用

系列文章

優雅地亂玩Linux

參考文獻

  • https://en.wikipedia.org/wiki/Secure_Shell

優雅地亂玩Linux-6-Chrome端SSH插件