Re: recreating /etc/ssh key files?



On Tue, 2007-07-31 at 01:21 +0900, Tomoki Taniguchi wrote:
when i installed the openssh-server package,
the install process automatically created the
key files in the /etc/ssh directory.

I want to recreate those /etc/ssh keyfiles.
is there a way to run the original script again?
any clues as to where that script would be located?

The script just runs ssh-keygen. There is a DSA and an RSA host key.
You can modify the keys by running:

sudo ssh-keygen -t dsa

and

sudo ssh-keygen -t rsa

Specify the target file as /etc/ssh/ssh_host_dsa_key
and /etc/ssh-ssh_host_rsa_key respectively. Do not encrypt the private
key with a passphrase -- just hit <Enter> at the passphrase prompt.

Please note that when you try and connect, you will get a warning that
the host key changed, if you have the host key cached in
the .ssh/known_hosts file. You will have to delete the key in that file
to authenticate.
--
Smoot Carl-Mitchell
System/Network Architect
email: smoot@xxxxxxx
cell: +1 602 421 9005
home: +1 480 922 7313

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: DNS, Man-in-the-middle??
    ... > my ISP's DNS server and tried to SSH to Speaker. ... > and its host key have changed at the same time. ... > It is also possible that the RSA host key has just been changed. ... It is behind my ISP NAT for my building(so it can only receive ...
    (Security-Basics)
  • DNS, Man-in-the-middle??
    ... Subject: DNS, Man-in-the-middle?? ... and its host key have changed at the same time. ... It is also possible that the RSA host key has just been changed. ... Elderbrain is behind Speaker's NAT. ...
    (Security-Basics)
  • Re: Batch or VBScript command needed
    ... If you just want to see their OU path casually, like not needing it in a ... script or something, you can see that by default in dsa. ... I forget the command used to obtain this information. ...
    (microsoft.public.windows.server.scripting)
  • Re: Network again!
    ... using the ssh client? ... It is also possible that the RSA host key has just been changed. ... The fingerprint for the RSA key sent by the remote host is ...
    (Ubuntu)
  • Re: Network again!
    ... > Is basic ssh connectivity working? ... It is also possible that the RSA host key has just been changed. ... The fingerprint for the RSA key sent by the remote host is ...
    (Ubuntu)