[logseq-plugin-git:commit] 2025-09-08T09:35:23.573Z

This commit is contained in:
YuanHui
2025-09-08 17:35:23 +08:00
parent 1c25911301
commit c70062d6f7
1256 changed files with 65938 additions and 45736 deletions

View File

@@ -1,17 +1,17 @@
- sshd启动报错 #linux
- ```bash
$ wsl.exe--distribution Arch --user root --exec sh -c "which sshd"
/usr/sbin/sshd
$ wsl.exe--distribution Arch --user root --exec /usr/sbin/sshd -dD
debug1: sshd version OpenSSH_9.3 OpenSSL 3.0.8 7 Feb 2023
debug1: Unable to load host key: /etc/ssh/ssh_host_rsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ecdsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.
```
- 解决
- ```zsh
ssh-keygen -A
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
- sshd启动报错 #linux
- ```bash
$ wsl.exe--distribution Arch --user root --exec sh -c "which sshd"
/usr/sbin/sshd
$ wsl.exe--distribution Arch --user root --exec /usr/sbin/sshd -dD
debug1: sshd version OpenSSH_9.3 OpenSSL 3.0.8 7 Feb 2023
debug1: Unable to load host key: /etc/ssh/ssh_host_rsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ecdsa_key
debug1: Unable to load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.
```
- 解决
- ```zsh
ssh-keygen -A
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
```