liwutao

安装ssh服务器端

yum install -y openssl openssh-server

修改配置

vi /etc/ssh/sshd_config

打开注释的行(如果没有就添加):

PermitRootLogin yes

RSAAuthentication yes

PubkeyAuthentication yes

AuthorizedKeysFile      .ssh/authorized_keys

 

启动ssh服务

systemctl start sshd.service

设置开机启动

systemctl enable sshd.service

 

安装客户端

yum install -y openssh-clients

安装完成执行ssh,如下提示即成功。

 

分类:

技术点:

相关文章: