Re: recreating /etc/ssh key files?
- From: Smoot Carl-Mitchell <smoot@xxxxxxx>
- Date: Mon, 30 Jul 2007 12:21:29 -0700
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
- References:
- recreating /etc/ssh key files?
- From: Tomoki Taniguchi
- recreating /etc/ssh key files?
- Prev by Date: Re: Find files in a date range?
- Next by Date: Re: File too large for DVD
- Previous by thread: Re: recreating /etc/ssh key files?
- Next by thread: File too large for DVD
- Index(es):
Relevant Pages
|