centos7安装openssh centos7怎么配置ssh服务?

centos7怎么配置ssh服务?1. 安装openssh-serveryum install -y openssl openssh-server2. 修改配置文件用vim打开配置文件/etc/ssh

centos7怎么配置ssh服务?

1. 安装openssh-serveryum install -y openssl openssh-server2. 修改配置文件用vim打开配置文件/etc/ssh/sshd_config将上图的PermitRootLogin,RSAAuthentication,PubkeyAuthentication的设置打开。启动ssh的服务:systemctl start sshd.service设置开机自动启动ssh服务systemctl enable sshd.service