美文网首页
CentOS7 sshd开启远程登陆

CentOS7 sshd开启远程登陆

作者: 長得太帥忚四種檌 | 来源:发表于2021-12-01 16:03 被阅读0次

    1.CentOS7安装 openssh-server,在终端中输入以下内容:

    yum install openssh-server
    

    2.编辑sshd的配置文件

    vim /etc/ssh/sshd_config
    

    3.修改以下内容, 前面有#号的去掉, 内容不一样的改成以下内容

    Port 22
    ListenAddress 0.0.0.0
    ListenAddress ::
    PermitRootLogin yes
    PasswordAuthentication yes
    

    4.重启服务

    systemctl restart sshd
    

    相关文章

      网友评论

          本文标题:CentOS7 sshd开启远程登陆

          本文链接:https://www.haomeiwen.com/subject/rskzzltx.html