Allen's Techlog
Friday, November 18, 2016
regenerate ssh host key on CentOS 7
after duplicate vm image, we need to regenerate sshd's host key, here is the steps:
rm -f /etc/ssh/ssh_host_*
systemctl restart sshd.service
it will regenerate all the necessary files to avoid the host identity warnings.
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment