CentOS 7安装和配置ssh
1. 安装openssh-serveryum install -y openssl openssh-server2. 修改配置文件用vim打开配置文件/etc/ssh/sshd_config将上图的PermitRootLogin,RSAAuthentication,PubkeyAuthentication的设置打开。启动ssh的服务:systemctl start sshd.service设置开机
·
1. 安装openssh-server
yum install -y openssl openssh-server
2. 修改配置文件
用vim打开配置文件/etc/ssh/sshd_config
将上图的PermitRootLogin,RSAAuthentication,PubkeyAuthentication的设置打开。
启动ssh的服务:
systemctl start sshd.service
设置开机自动启动ssh服务
systemctl enable sshd.service
更多推荐
已为社区贡献10条内容
所有评论(0)