我在使用 KVM 的虚拟机 Ubuntu Server 16.04.01 上安装 OpenSSH 服务器时遇到问题。
当我尝试安装 openssh-server 时,得到以下响应:
Setting up openssh-server (1:7.2p2-4ubuntu2.1) ...
Creating SSH2 RSA key; this may take some time ...
2048 SHA256:i6IKfykW1E9hYmlHFLid3KksBI11oxCmKlbQjFOVNZY root@host (RSA)
Creating SSH2 DSA key; this may take some time ...
1024 SHA256:tGZN8I6qfTdAanbPy4fxj/ARLTPrrtQKWZXTQZWG/o4 root@host (DSA)
Creating SSH2 ECDSA key; this may take some time ...key_generate failed
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 255
Processing triggers for systemd (229-4ubuntu7) ...
Processing triggers for …Run Code Online (Sandbox Code Playgroud)