修改密码
sudo passwd root
kali中的ssh每次开机都需要手动启动,为方便xshell的使用,需要修改为开机自动启动
方法:
1.修改ssh_config文件。命令:vim /etc/ssh/sshd_config
2.将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //我的kali中默认是yes
3.将#PermitRootLogin yes的注释去掉 //我的kali中默认去掉了注释
4.启动SSH服务,命令为:/etc/init.d/ssh start // 或者service ssh start
5.验证SSH服务状态,命令为:/etc/init.d/ssh status
6.添加开机自启动 update-rc.d ssh enable
关闭则为:
update-rc.d ssh disabled
自启动需要重启生效
注:现在关闭报错,暂时没有找到方法。