虚拟机 网卡配置选择 桥接网卡
安装ssh服务 sudo apt-get install openssh-server
启动、停止和重启openssh-server的命令如下
/etc/init.d/ssh start
/etc/init.d/ssh stop
/etc/init.d/ssh restart
- 配置 /etc/ssh/sshd_config
将#PermitRootLogin without-password注释去掉修改为
PermitRootLogin yes
将#PasswordAuthentication no的注释去掉,并且
将NO修改为YES //kali中默认是yes
配置完成之后需要重启