一、修改root密码
1、修改root密码
密码设置为:123456
 

二、开启kali远程ssh
1、配置SSH参数
修改sshd_config文件,命令为:vi /etc/ssh/sshd_config
 

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

将PermitRootLogin without-password修改为PermitRootLogin yes
 

2、启动SSH服务
/etc/init.d/ssh start
或者
service ssh start
 

查看SSH服务状态是否正常运行,命令为:
/etc/init.d/ssh status
或者
service ssh status
 

3、设置系统自动启动SSH服务
update-rc.d ssh enable  //系统自动启动SSH服务
update-rc.d ssh disabled // 关闭系统自动启动SSH服务
 

三、xshell连接











