我想禁用 ssh 服务器的基于公钥和私钥的身份验证。只想使用基于密码的 ssh 客户端登录。如何配置?有什么帮助吗?
我的 /etc/ssh/sshd_config 文件的内容如下:包含 /etc/ssh/sshd_config.d/*.conf
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
# For this to work you will also need host keys in
/etc/ssh/ssh_known_hosts
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
我的 /etc/ssh/ssd_config 文件的内容如下
Include /etc/ssh/ssh_config.d/*.conf
Host *
PasswordAuthentication yes
HostbasedAuthentication no
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null