A simple `dpkg-reconfigure openssh-server` also does the trick:
root@host:/# dpkg-reconfigure openssh-server Creating SSH2 ECDSA key; this may take some time ... Restarting OpenBSD Secure Shell server: sshd.
A simple `dpkg-reconfigure openssh-server` also does the trick:
root@host:/# dpkg-reconfigure openssh-server
Creating SSH2 ECDSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.