CentOS ssh 호스트 키 변경
[root@theingka ~]# ls -l /etc/ssh/ssh_host_* -rw-------. 1 root root 668 Nov 21 2011 /etc/ssh/ssh_host_dsa_key -rw-r--r--. 1 root root 590 Nov 21 2011 /etc/ssh/ssh_host_dsa_key.pub -rw-------. 1 root root 963 Nov 21 2011 /etc/ssh/ssh_host_key -rw-r--r--. 1 root root 627 Nov 21 2011 /etc/ssh/ssh_host_key.pub -rw-------. 1 root root 1675 Nov 21 2011 /etc/ssh/ssh_host_rsa_key -rw-r--r--. 1 root root 382 Nov 21 2011 /etc/ssh/ssh_host_rsa_key.pu
[root@theingka ~]#rm /etc/ssh/ssh_host_* [root@theingka ~]#ssh-keygen --A
[root@theingka ssh]# service sshd restart Stopping sshd: [ OK ] Generating SSH1 RSA host key: [ OK ] Generating SSH2 RSA host key: [ OK ] Generating SSH2 DSA host key: [ OK ] Starting sshd: [ OK ]
이렇게 설정하면 새로운 호스트키 생성 끝 ~