Transfer existing SSH keys from a TFTP server to the switch

You can transfer an SSH-2 RSA, SSH-2 DSA , or ECDSA key Privacy Enhanced Mail (PEM) file from a remote switch or computer to the switch.

Before you transfer a file from a TFTP server to the switch, the following conditions must be true:

  • The file that you transfer from a TFTP server is on the server in the appropriate directory.

  • The file is in the correct format.

  • The switch contains a path to the TFTP server.

Note: To download an SSH key file to the switch, SSH must be disabled (see Configure the global SSH access settings).

To transfer SSH keys to the switch:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Security > Access > SSH > Host Keys Download.

    The Host Keys Download page displays.

  3. From the File Type menu, select the type of key file to download:
    • SSH-2 RSA Key PEM File: SSH-2 Rivest-Shamir-Adelman (RSA) key file (PEM Encoded)

    • SSH-2 DSA Key PEM File: SSH-2 Digital Signature Algorithm (DSA) key file (PEM Encoded)

    • ECDSA Key PEM File: Elliptic Curve Digital Signature Algorithm (ECDSA) key file (PEM Encoded)
  4. From the Transfer Mode menu, select the protocol that must be used to transfer the file:
    • TFTP: Trivial File Transfer Protocol

    • SFTP: Secure File Transfer Protocol

    • SCP: Secure Copy Protocol

  5. From the Server Address Type menu, select IPv4, IPv6, or DNS to indicate the format for the TFTP Server IP field.

    The default is IPv4.

  6. In the Server IP field, specify the address or host name of the server.

    The address can be an IP address in the standard IPv4 or IPv6 address format or a host name. The host name must start with a letter of the alphabet.

  7. In the Remote File Path field, enter the path of the file to download.

    You can enter up to 96 characters. The default is blank.

  8. In the Remote File Name field, enter the name of the file on the TFTP server to download.

    You can enter up to 32 characters. The default is blank.

  9. If you select SFTP or SCP from the Transfer Mode menu, enter the user name in the Username field.

    This is the user name with which you access the SFTP or SCP server.

  10. If you select SFTP or SCP from the Transfer Mode menu, enter the password in the Password field.

    This is the password that is required to access the SFTP or SCP server.

  11. Click the Apply button.

    The file transfer starts. A status message displays during the transfer and upon successful completion of the transfer.

  12. To save the settings to the running configuration, click the Save icon.