开启SSH 使用SSH登录工具连接虚拟机

修改sshd_config文件,命令为:
vi /etc/ssh/sshd_config
将#PermitRootLogin without-password注释去掉修改为
PermitRootLogin yes

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

 保存,退出
启动SSH服务
命令为:
/etc/init.d/ssh start
或者
service ssh start
在这里插入图片描述
查看SSH服务状态是否正常运行,命令为:
/etc/init.d/ssh status
或者
service ssh status
在这里插入图片描述
使用SSH登录工具(Putty\SecureCRT\XShell)就可以登录kali

猜你喜欢

转载自www.cnblogs.com/lizijiang/p/11349204.html