: Cpanel SSH Access with PuTTY



Rise Company
29-12-2019, 06:57
Cpanel connect with server via SSH with PuTTY
ssh cpanel - putty
SSH Access - Manage SSH Keys - Public Keys - Private Keys - View or Download SSH Keys
Authorization - Convert the id_rsa key to PPK format

https://www.youtube.com/watch?v=9Yx1gZKgb5Y

go to cPanel by clicking the cPanel Login button in the Quick Server Login section. https://www.rise.company/forum/images/imported/2019/12/8.png
In the SECURITY section, click the SSH Access link or icon.
https://www.rise.company/forum/images/imported/2019/12/9.png
Click the Manage SSH Keys button.
https://www.rise.company/forum/images/imported/2019/12/10.png
Generate SSH Keys

Click the Generate a New Key button.
https://www.rise.company/forum/images/imported/2019/12/11.png
The following entries are required to generate the key pair:


Key Name defaults to id_rsa, typically there is no need to change the default value.
Key Password use a strong password or passphrase.
Key Type should default to RSA, typically there is no need to change the default value.
Key Size should default to 2048, we recommend leaving the default value.

Enter a password or passphrase and click the Generate Key button.
https://www.rise.company/forum/images/imported/2019/12/12.png
The keys will be generated and shown.
To authorize SSH access using the private key you just created, click the Go Back link or icon.
https://www.rise.company/forum/images/imported/2019/12/13.png
In the Public Keys section, click the Manage link or icon.
https://www.rise.company/forum/images/imported/2019/12/14.png
Click the Authorize button.
https://www.rise.company/forum/images/imported/2019/12/15.png
Download private keys

Click the Go Back link or icon to get back to the Manage SSH Keys page.
In the Private Keys section of the Manage SSH Keys page, click the View/Download link or icon.
https://www.rise.company/forum/images/imported/2019/12/16.png
You have a few options here: click the Download Key button, copy/paste the provided key, or convert the key into PuTTYs PPK format using the Convert option.
If you click the Download Key button, the key will be saved on your computer with the name id_rsa.
https://www.rise.company/forum/images/imported/2019/12/17.png
For this tutorial, were going to use the PuTTY SSH program so in the Convert the id_rsa key to PPK format: section, enter the password or passphrase you specified during key generation, and click the Convert button.
https://www.rise.company/forum/images/imported/2019/12/18.png
The key will be saved on your computer with the name id_rsa.ppk.
To follow along from this point on, youll need PuTTY, so if you dont already have it, download and install PuTTY.
Open the PuTTy folder on your computer and run puttygen.exe.
https://www.rise.company/forum/images/imported/2019/12/19.png
In the PuTTY Key Generator menu, select the File tab and click Load private key.
https://www.rise.company/forum/images/imported/2019/12/20.png
Select the PPK format key that you saved in cPanel.
https://www.rise.company/forum/images/imported/2019/12/21.png
Enter the password or passphrase you specified during key generation and click the OK button.
https://www.rise.company/forum/images/imported/2019/12/22.png
In the PuTTy folder on your computer, run putty.exe.
https://www.rise.company/forum/images/imported/2019/12/23.png
In the Session category, enter your server hostname into the Host Name field. Port is 22.
https://www.rise.company/forum/images/imported/2019/12/24.png
Go to the Connection/ SSH/Auth category. Select the PPK format key that you saved in cPanel and click the Open button.
https://www.rise.company/forum/images/imported/2019/12/25.png
A shell window will open. The login as username is your cPanel username, and the password is the password or passphrase you specified during key generation.
https://www.rise.company/forum/images/imported/2019/12/26.png

WARNING: Excercise caution when accessing your account via the command line. Incorrect or incorrectly used commands can permanently change or delete permissions and files. If you do not have command line experience or are uncertain about a command, we suggest exploring alternatives to using the command line.



:
https://blog.cpanel.com/how-to-use-putty-ssh-with-cpanel/