仮想マシンのシーリング等で rm /etc/ssh/ssh_host* するのは定番だと思うが、 Ubuntu 16.04 LTS Server だと SSH のホストキーが自動生成されずハマった。 $ rm /etc/ssh/ssh_host* $ sudo systemctl stop sshd $ sudo systemctl start sshd $ ls /etc/ssh/ moduli ssh_config ssh_import_id sshd_config $ sudo systemctl status sshd * ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled) Active: