在使用Kali的时候为了系统的安全性,默认是把ssh远程功能给关闭了,需要设置一下才能进行远程的管理,下面介绍一下如何设置:
编辑ssh配置文件
vi /etc/ssh/sshd_config#注意是sshd_config,不是ssh_config
将PermitRootLogin without-password修改为
PermitRootLogin yes
把#PasswordAuthentication no的注释去掉(删除#号),并且将NO修改为yes
重启服务
/etc/init.d/ssh restart
设置开机启动
update-rc.d ssh enable