Skip to content

Commit 4e2abc6

Browse files
committedDec 1, 2024·
doc: updte ssh login post
1 parent a73def3 commit 4e2abc6

File tree

1 file changed

+2
-0
lines changed
  • src/content/blog/configure-ssh-login-with-keys-only

1 file changed

+2
-0
lines changed
 

‎src/content/blog/configure-ssh-login-with-keys-only/index.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ ClientAliveInterval 60
5757
ClientAliveCountMax 10
5858
```
5959

60+
另外特别注意小心在 sshd_config 中被 Include 进来的 `/etc/ssh/sshd_config.d/` 目录中的配置背刺,导致还是可以通过密码登录,比如阿里云的服务器都有这个问题。
61+
6062
配置完成后,将上面公钥中的内容写入到 `~/.ssh/authorized_keys` 文件中,所有配置就完成了。
6163

6264
## 重启 SSH 服务

0 commit comments

Comments
 (0)
Please sign in to comment.