美文网首页
Kali SSH 远程登陆配置

Kali SSH 远程登陆配置

作者: UncleDavid | 来源:发表于2018-02-01 19:47 被阅读0次


    ·  一、配置SSH参数 修改sshd_config文件

    命令为: vi /etc/ssh/sshd_config

    1.将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //kali中默认是yes · 

    2.将#PermitRootLogin without-password修改为 PermitRootLogin yes 并去掉注释  

     ·  二、启动SSH服务 命令为:

    /etc/init.d/ssh start  或者 service ssh start

     查看SSH服务状态是否正常运行,命令为:

     /etc/init.d/ssh status 或者 service ssh status

    ssh端口号为22

      · 三、生成两个密钥:

    #ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key

    #ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key  

    相关文章

      网友评论

          本文标题:Kali SSH 远程登陆配置

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