Ubuntu服务器初始化
跳到导航
跳到搜索
故意的 ubuntu 2004 server
#好像是这个成功的 有个要的 不要在kali root ssh ubuntu ➜ ~ ssh [email protected] Please login as the user "evan" rather than the user "root". sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config sudo systemctl restart ssh sed -i 's!#PermitRootLogin prohibit-password!PermitRootLogin yes!' /etc/ssh/sshd_config sed -i 's!#PermitRootLogin prohibit-password!PermitRootLogin yes!' /etc/ssh/sshd_config /etc/init.d/ssh restart