Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Host keys after cloning |
|---|---|
| Date: | Fri, 27 Aug 2004 07:37:33 -0400 |
On Thu, Aug 26, 2004 at 02:56:26PM -0400, Ugo Bellavance wrote:
I just cloned a server to save install time, but now I realize that the ssh host key is the same for every server. That makes sense since I cloned them, but I was wondering if that was insecure, and how to regenerate them.
1) Yes, it's generally a bad idea to use the same host keys on different
hosts, unless you're running them as a cluster.
2) Delete the old host keys, and then regenerate them thus:
ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""
ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""
(Substitute the proper directory, of course, if yours aren't in
/usr/local/etc.)
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Host keys after cloning, Ugo Bellavance |
|---|---|
| Next by Date: | Re: Host keys after cloning, Leif Ericksen |
| Previous by Thread: | Host keys after cloning, Ugo Bellavance |
| Next by Thread: | Re: Host keys after cloning, Leif Ericksen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |