tle ring comm 安全网 分享 bst ould itl
文章最初发表于 szhshp 的第三边境研究所
转载请注明
最近注册了个 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 连接有多种方式:
系统下
- Linux/Unix
直接创建
- Terminal
系统下使用三方软件创建
- Linux/Unix/Windows
中创建,需要 JRE,并且很多浏览器已经不支持
- 浏览器
中使用插件创建
- Chrome
主要说说 Chrome 中插件的方案
首先下载个插件:https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo?hl=en-US
基本上看到就知道如何使用了
EC2 一般使用
的 Private Key 进行认证,但是在使用 Secure Shell 中经常会遇到个问题:
- .pem
- 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
, 然后 Import 的时候都选中即可
- 123.pen.pub
这看起来是个偏方不过确实有用
来源: http://www.bubuko.com/infodetail-2279941.html