Replacing SSH Authorization Keys on the Server

The commands in this guide are executed via the ISP Manager control panel under the root user. By following these instructions, you can replace the SSH keys used for authentication on the server via SSH/SFTP.


Steps:

  1. Log in to the ISP Manager server control panel as the root user.

  2. Navigate to the "Administration" -> "Shell Client" section.

  1. Right-click on the blank screen and select "Paste from browser" from the context menu.

  1. Enter the command in the window that opens and click "OK". Then press Enter to execute the command.

  2. Execute the commands listed below one by one, repeating steps 3 and 4 for each command.

  3. List of commands to execute (hover over a command to use the copy icon on the right):

rm ~/.ssh/authorized_keys
ssh-keygen -m PEM -t rsa -b 2048 -f ~/PRIVATE_SSH_KEY -q -N ""
puttygen ~/PRIVATE_SSH_KEY -o ~/PRIVATE_SSH_KEY.ppk -O private
touch ~/.ssh/authorized_keys
cat ~/PRIVATE_SSH_KEY.pub >> ~/.ssh/authorized_keys
rm ~/PRIVATE_SSH_KEY.pub -f

  1. In the "File Manager" section, navigate to the "root" folder.

  1. Download the two SSH keys to your computer:

    • PRIVATE_SSH_KEY — Use this for macOS/Linux.

    • PRIVATE_SSH_KEY.ppk — Use this for Windows.

  1. Delete the generated keys from the server after downloading them.

  1. Perform a test connection via SSH/SFTP using the new keys.


By following these steps, you will successfully replace the SSH keys used for server authentication.

Last updated