天天看点

OpenSSH服务——密钥登录

1、ssh   (secure shell) tcp/端口 22

      v1.0  不安全,

      v2.0  安全,基于DH算法 做密钥交换,加密 rsa,dsa

      C/S       服务器:ssh    

          客户端 : ssh scp sftp

                    window   xshell   securitecrt   putty    M

OpenSSH服务——密钥登录
OpenSSH服务——密钥登录

/root/.ssh 默认密钥对存放文件  ,这里还没有生成

/etc/ssh/ssh_config 客户端配置文件

/etc/ssh/sshd_config 服务器配置文件

OpenSSH服务——密钥登录

检查是否安装了openssh-server

OpenSSH服务——密钥登录

yum -y install openssh*  安装openssh

OpenSSH服务——密钥登录

重启sshd服务

OpenSSH服务——密钥登录

生成密钥对

OpenSSH服务——密钥登录

发送密钥

OpenSSH服务——密钥登录

密钥登录成功

OpenSSH服务——密钥登录