recreating /etc/ssh key files?
Bruce Marshall
bmarsh at bmarsh.com
Mon Jul 30 17:32:18 UTC 2007
On Monday 30 July 2007, 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?
>
> TIA,
> Tomoki
I'm not clear on just what key files you're talking about. There are several.
To generate a key, use:
ssh-keygen -t dsa
and hit enter at all the prompts. This will generate a dsa type key on your
own machine.
Another file is the known_hosts file which is create as you ssh to various
hosts.
More information about the ubuntu-users
mailing list