xshell之类的软件第一次连接不上初次安装kali问题

用虚拟机配置着玩xshell连接kali
结果遇到的问题记录:

xshell连接不上,与centos 不同需要手动打开服务
方法:
1、修改sshd_config文件,命令为:vi /etc/ssh/sshd_config 


2、将#PasswordAuthentication no的注释去掉,并且将NO修改为YES  


3、将#PermitRootLogin yes的注释去掉 


4、启动SSH服务,命令为:/etc/init.d/ssh start // 或者service ssh start


5、结果并不能用root账户登录,
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key


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


生成两个密匙


6、service ssh restart 




连接即可完成。

你可能感兴趣的:(linux)