shfshanyue / blog

在这里写一些工作中遇到的前端,后端以及运维的问题

Home Page:https://shanyue.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在ssh_config里禁用密码登录无意义

imba-tjd opened this issue · comments

https://shanyue.tech/op/init.html#禁用密码登录

ssh_config是客户端配置。改sshd_config才对

恩,我好像写的就是 sshd_config

# 编辑服务器端的 /etc/ssh/sshd_config
# 禁用密码登录
Host *
  PasswordAuthentication no