启动ssh服务时,提示Could not load host key: /etc/ssh/ssh_host_rsa_key
Amanda_jx:
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
SHA256:V3grZVJIiT54+YBHGbFtGDhwVkF4+w1hYrCLT8qyTdY root@LAPTOP-1NOT4639
The key's randomart image is:
+---[RSA 2048]----+
| ..+*BB.o. |
| o+.B==o |
| .Oo==.= |
| .o.O..* . |
| . ooS=oo. |
| . = .o.. |
| . = E |
| * |
| . . |
+----[SHA256]-----+
root@LAPTOP-1NOT4639:/etc/ssh# ls
moduli ssh_config ssh_host_rsa_key ssh_host_rsa_key.pub ssh_import_id sshd_config
root@LAPTOP-1NOT4639:/etc/ssh# service ssh restart
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
* Restarting OpenBSD Secure Shell server sshd Could not load host key: /etc/ssh/ssh_host_ecdsa_ke
|