Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure New SSH Keys on Apstra Server

Release: Juniper Apstra 4.1
{}
Change Release
date_range 19-Jul-24

You can replace SSH host keys on new or existing Apstra server VMs.

  1. SSH into the Apstra server as user admin. (ssh admin@<apstra-server-ip> where <apstra-server-ip> is the IP address of the Astra server.)
  2. Run the command sudo rm /etc/ssh/ssh_host* to remove SSH host keys.
  3. Run the command sudo dpkg-reconfigure openssh-server to configure new SSH host keys.
    content_copy zoom_out_map
    admin@aos-server:~$ sudo dpkg-reconfigure openssh-server
    Creating SSH2 RSA key; this may take some time ...
    2048 SHA256:EWRFcs4V6BmOILR3T2Psxng1uE0qXQ/z9IKkXrnLpJs root@aos-server (RSA)
    Creating SSH2 ECDSA key; this may take some time ...
    256 SHA256:THaXEia8VW6Jfw6OBXFegu1Cav0zcGSVOy9RkNOPxf4 root@aos-server (ECDSA)
    Creating SSH2 ED25519 key; this may take some time ...
    256 SHA256:0HOn0nnF+7oRaF5HggI4vWeyxT+UNsHcbvNpBJdaKhQ root@aos-server (ED25519)
    admin@aos-server:~$ sudo dpkg-reconfigure openssh-server
    
  4. To restart the SSH server process, run the command sudo systemctl restart ssh.
footer-navigation