freeBSD 安裝後之 sshd ed25519 警告訊息

最近在新裝好的 freeBSD,
重新 buildworld 之後在 console 可以看到一大串的警告訊息

sshderror

似乎只要使用 ssh 登入就會出現

查了一下是漏了一個新型態的 ED25519 host key

解決方法是手動產生這個 key

# ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ed25519_key -N ”
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_ed25519_key.
Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub.
The key fingerprint is:
8b:20:6b:3d:0a:93:33:c1:d9:91:13:b9:74:65:45:2d root@SARO
The key’s randomart image is:
+–[ECDSA 256]—+
| .. .ooo. |
| oo.. E . |
| .+o . |
|. o.o |
|.o… S |
| o + . . . |
|* o o . . |
| * . . |
| . |
+—————–+

然後重啟 sshd 就可以:

# /etc/rc.d/sshd restart
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 5575.
Performing sanity check on sshd configuration.
Starting sshd.

2015/03/14 update:

or 執行
# ssh-keygen -A

全部 key 都重新產生也可以

1,289 total views, 1 views today

Leave a Comment

Your email address will not be published. Required fields are marked *