码迷,mamicode.com
首页 > 系统相关 > 详细

xshell之类的软件连接初次安装kali2.0问题

时间:2017-06-12 14:33:29      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:输入密码   软件   虚拟机   记录   

xshell之类的软件连接初次安装kali2.0问题

  虚拟机配置xshell连接kali问题记录:
1、修改sshd_config文件,命令为:vi /etc/ssh/sshd_config 


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


把PermitRootLogin without-password注释掉 ,也就是行首加上#
2、重启SSH服务  /etc/init.d/ssh restart 
3、如果还不能用root账户登录,
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
生成两个密匙,执行命令后都会让输入密码,直接敲回车设置为空即可

4、/etc/init.d/ssh restart 

连接即可完成。

本文出自博客http://xiangji.blog.51cto.com,请务必保留此出处。

本文出自 “交流” 博客,请务必保留此出处http://xiangji.blog.51cto.com/12944296/1934351

xshell之类的软件连接初次安装kali2.0问题

标签:输入密码   软件   虚拟机   记录   

原文地址:http://xiangji.blog.51cto.com/12944296/1934351

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!