美文网首页
ubuntu 开启sshd

ubuntu 开启sshd

作者: michael_0x | 来源:发表于2023-08-23 19:52 被阅读0次
    sudo apt-get udpate
    sudo apt-get install openssh-server
    

    config:

    sudo vi /etc/ssh/sshd_config
    

    with below config update:

    # Authentication:
    
    #LoginGraceTime 2m
    #PermitRootLogin prohibit-password
    PermitRootLogin yes
    #StrictModes yes
    MaxAuthTries 10
    #MaxSessions 10
    

    enable root passwd:

    sudo passwd root
    

    start the sshd service

    sudo service ssh restart
    

    相关文章

      网友评论

          本文标题:ubuntu 开启sshd

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