Skip to content

Commit

Permalink
doc: updte ssh login post
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Dec 1, 2024
1 parent a73def3 commit 4e2abc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/blog/configure-ssh-login-with-keys-only/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ ClientAliveInterval 60
ClientAliveCountMax 10
```

另外特别注意小心在 sshd_config 中被 Include 进来的 `/etc/ssh/sshd_config.d/` 目录中的配置背刺,导致还是可以通过密码登录,比如阿里云的服务器都有这个问题。

配置完成后,将上面公钥中的内容写入到 `~/.ssh/authorized_keys` 文件中,所有配置就完成了。

## 重启 SSH 服务
Expand Down

0 comments on commit 4e2abc6

Please sign in to comment.