我用腻子创build了一个pub / pri组合键。 在腻子中,我可以设置私钥的位置,并以此方式login。 但是,如果我不设置我的密钥,服务器仍然要求我的密码,并让我login。 我如何防止这种情况?
假设一个* nix服务器(这将是一个很好的信息),修改/etc/ssh/sshd_config ,将PasswordAuthentication设置为no 。
/etc/ssh/sshd_config
PasswordAuthentication
no