首页 > 其他 > 详细

CentOS 8 配置 ssh

时间:2020-05-27 16:32:34      阅读:234      评论:0      收藏:0      [点我收藏+]

1、安装openssh和openssh-server
dnf -y install openssh
dnf -y install openssh-server

卸载openssh和openssh-server
dnf -y remove openssh
dnf -y remove openssh-server

生成秘钥对,保持默认配置即可。
ssh-keygen

设置ssh,打开登录功能,保持默认配置即可。
编辑/etc/ssh/sshd_config文件:
RSAAuthentication yes
PubkeyAuthentication yes

另外,允许root通过 SSH 登录看,如果禁止root远程登录,那就设置为 no :

PermitRootLogin yes

设置系统开机自启openssh-server,开启openssh-server:

使用MobaXterm连接远程服务器。

CentOS 8 配置 ssh

原文:https://www.cnblogs.com/ycz109/p/12973313.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!