SSH:Secure Shell
2018-01-30 00:16
92 查看
SSH:Secure Shell
Secure Shell ,是一种网络安全协议,主要用于登录远程计算机的加密过程。SSH登录方式主要有两种:
1.用户名密码验证方式
说明:
(1)当客户端发起ssh请求,服务器会把自己的公钥发送给用户;
(2)用户会根据服务器发来的公钥对密码进行加密;
(3)加密后的信息回传给服务器,服务器用自己的私钥解密,如果密码正确,则用户登录成功。
2.基于密钥的登录方式
说明:
(1)首先在客户端生成一对密钥(ssh-keygen)
(2)并将客户端的公钥(ssh-copy-id)拷贝到服务端
(3)当客户端再次发送一个连接请求,包括ip、用户名;
(4)服务端得到客户端的请求后,会到(authorized_keys)中查找,如果有响应的IP和用户,就会随机生成一个字符串;
(5)服务端将使用客户端拷贝过来的公钥进行加密,然后发送给客户端;
(6)得到服务端发来的消息后,客户端会使用私钥进行解密,然后将解密后的字符串发送服务端;
(7)服务端接受到客户端发送的字符串后,和之前的字符串进行比较,如果一致,就允许免密登录。
喜欢就点赞评论+关注吧
感谢阅读,希望能帮助到大家,谢谢大家的支持!
相关文章推荐
- SSh secure shell 如何连接虚拟机
- Secure Shell(SSH)简介
- Linux系统SSH(Secure Shell Protocol)服务
- 信息安全之ssh(Secure Shell)
- SSH(Secure SHell)使用
- SSH(Secure Shell Protocol)命令之scp
- Linux命令之ssh - Secure Shell 客户端
- SSH Secure Shell 无法登录:server responded "algorithm negotiation failed”
- SSH Secure Shell 无法登录:server responded "algorithm negotiation failed”
- SSH Secure Shell登陆RHEL5乱码
- SSH(Secure Shell Protocol)命令之scp
- ubuntu安装 SSH(Secure Shell) 服务以提供远程管理服务
- About Linux & SSH(Secure Shell Client )
- chrome的ssh客户端插件-- secure shell
- Secure Shell(SSH) & OpenSSH 初探
- SSH(Secure Shell Protocol)命令之sftp
- 推荐一款 chrome SSH 插件 - Secure Shell
- SSH Secure Shell(Linux)最常用命令详解
- 安装配置SSH(Secure Shell)