centos7 安装ssh

安装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,如下提示即成功。

 

posted on 2020-07-21 11:09  哼着歌啦啦啦  阅读(873)  评论(0编辑  收藏  举报