如果你添加
ChallengeResponseAuthentication noPasswordAuthentication noUsePAM no
到/ etc / ssh / sshd_config你为所有用户禁用它
将它添加到〜/ .ssh / config似乎不起作用
解决方法 使用匹配所有用户但匹配您希望能够使用密码身份验证的匹配,并在该匹配块中添加“PasswordAuthentication no”.就像是:Match User someuserPasswordAuthentication no
等等.
总结以上是内存溢出为你收集整理的linux – 用户禁用ssh密码验证全部内容,希望文章能够帮你解决linux – 用户禁用ssh密码验证所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)