Results 1 to 1 of 1

Thread: Desktop and Server: Regenerate Keys after Install

Threaded View

  1. #1
    Join Date
    Nov 2009

    Question Desktop and Server: Regenerate Keys after Install

    Hi All,

    This question is for a server, but it applies to my desktop installations too.

    I recently installer Ubuntu Server 12.04 with OpenSSH, LAMP, and Samba. After installation and during first boot, I believe at least one set of [machine] keys is generated.

    I have an Entropy Key, and I would like to re-generate all keys with a RNG/PRNG that I know is in good working order.

    I believe the SSH server can be fixed up with:

    ssh-keygen -f /etc/ssh/ssh_host_rsa_key -b 2048 -N '' -t rsa
    ssh-keygen -f /etc/ssh/ssh_host_dsa_key -b 1024 -N '' -t dsa
    ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -b 256 -N '' -t ecdsa
    Can anyone confirm that's all I need for SSH?

    Can anyone point out where else I need to look for other components, such as Apache or Samba?

    Last edited by noloader; January 16th, 2013 at 03:13 AM. Reason: Added info on ECDSA and bit sizes;

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts