优雅地乱玩Linux-6-Chrome端SSH插件

文章最初发表于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

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

优雅地乱玩Linux-6-Chrome端SSH插件

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

参考文献

ssh

相关推荐