--- notion-id: b47bfda1-6358-4bc4-8a75-e1ea3d05dd46 --- **ssh_config和sshd_config都是ssh服务器的配置文件** 配置文件位置:`/etc/ssh/` **ssh_config针对你连接别人** **sshd_config针对别人连接你** ```shell 将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //kali中默认是no 将PermitRootLogin without-password修改为PermitRootLogin yes ```