Artikler om: Cloudnet.dk

How to generate a SSH key

The cPanel SSH Access interface allows you to generate and download an SSH Key pair for your account. SSH allows secure file transfer, and remote logins over the internet, the connections via SSH are encrypted allowing the secure connections.

How to generate a SSH key



1) Log into cPanel.

2) Look for the SECURITY section and click on SSH Access



3) Click on the “Manage SSH Keys” button.



4) Click on the “Generate a New Key” button.



5) In the next screen, you’ll be asked to choose a name and a password for your SSH Key. Please make sure you write down this password as you will need it to establish the SSH connection. Next choose DSA or RSA for the type, it’s recommended that you choose RSA and use the 2048 or higher key size. Once you are ready, click on the “Generate Key” button.



6) A confirmation message will appear on the next screen after the Key is generated. Now click on the “Go Back” icon at the bottom to view/manage your SSH Key.



Authorize the SSH Key



For the new SSH key to function, we must authorize it. This can easily be done from the “SSH Access” section within cPanel.

1) Click on the “Manage” link located next to the key you generated earlier.



2) Now click on the “Authorize” button to complete the process.



Download the Private Key



Now that we have generated and authorized the SSH Key, we’ll need to download it.

1) From the SSH Access section click on the private key link at the bottom of the page corresponding to the key pair that you have just generated and authorized.



2) Here you’ll see two options if you are a Mac/Ubuntu/Other Linux user just copy the text from the window to a file on your PC. You can name it key.ppk. Another option would be to click on the “Download Key” button which will automatically save the Private Key to your computer.



3) If you are a Windows user, you will need to enter the passphrase you set while creating the key and convert the key to a format that Windows software (generally PuTTY) understands and click on the “Convert” button.



4) Click on “Download Key” to save the key to your computer.

Opdateret den: 09/11/2021

Hjalp denne artikel dig?

Del din feedback

Annuller

Tak!