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 08:58:08 -0500 |
This cut and paste...
Normally each user wishing to use SSH with RSA or DSA authentication runs this once to create the authentication key in $HOME/.ssh/identity, $HOME/.ssh/id_dsa or $HOME/.ssh/id_rsa. Additionally, the system admin-istrator may use this to generate host keys, as seen in /etc/rc.
See also this Linux /etc/init.d/sshd startup script snip:
do_rsa1_keygen() {
echo -n $"Generating SSH1 RSA host key: "
success $"RSA1 key generation"
failure $"RSA1 key generation"
do_rsa_keygen() {
echo -n $"Generating SSH2 RSA host key: "
success $"RSA key generation"
failure $"RSA key generation"
do_dsa_keygen() {
echo -n $"Generating SSH2 DSA host key: "
success $"DSA key generation"
failure $"DSA key generation"
failure $"Configuration file or keys are invalid"
# Create keys if necessary
do_rsa1_keygen
do_rsa_keygen
do_dsa_keygen
--Leif
Hi,
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.
Thanks,
Ugo
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Host keys after cloning, Greg Wooledge |
|---|---|
| Next by Date: | Need help with an ssh connection, joseph . eoff |
| Previous by Thread: | Re: Host keys after cloning, Greg Wooledge |
| Next by Thread: | Re: Host keys after cloning, Marius Huse Jacobsen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |