xshell 连接 kali

1   修改配置文件

1 vi /etc/ssh/sshd_config
2 
3 #PasswordAuthentication no  去掉#,并且将no修改为YES //kali中默认是yes
4 
5 PermitRootLogin prohibit-password下边增加一行
6 
7 PermitRootLogin yes

2 重启

/etc/init.d/ssh restart 

3 查看状态

/etc/init.d/ssh status

猜你喜欢

转载自www.cnblogs.com/lanyincao/p/11491413.html