> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.namehero.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How To Create SSH Keys in cPanel

### Do you need to generate new keys so you can connect to your account via SSH or some other application like gitlab?

### There are 2 ways.

### The first method in this article is for generating the key pairs in cpanel.

### The second way is generating them on your local computer (PC) and importing them into cpanel. The second method using PuttyGen can be found here.

**Step 1:** [Login to your cPanel account.](https://help.namehero.com/en/articles/4378718-how-to-login-to-cpanel)

**Step 2:** Once logged into your cPanel account, find the 'SSH Access' icon:

[![](https://storage.crisp.chat/users/helpdesk/website/7078a06f1e64b400/12bb18b4-b32a-40f7-9512-47840c_o8khto.png)](https://downloads.intercomcdn.com/i/o/1175408769/23891097aa106ee7fd7fc4f6/Screenshot+2024-09-10+113854.png?expires=1728569700&signature=f99b7e1d1190652f4b473c0457443a9771f685e0c03d1500e30988a83545a68c&req=dSEgE81%2BlYZZUPMW1HO4zQznlIDOSHMDarNSZTv4ltJ0czhBfm0udLstRFUG%0AsIE4G1xCuOGcBNgg6i8%3D%0A)

**Step 3:** Now click on Manage SSH Keys

[![](https://storage.crisp.chat/users/helpdesk/website/f3c74bbfff85f800/761d9a8d-b681-4ce5-a5fd-c1458f_1vo0s3n.png)](https://downloads.intercomcdn.com/i/o/1175409454/b82dea2880bc093821b5a11a/Screenshot+2024-09-10+113936.png?expires=1728569700&signature=067e6579ab9a5b35d1af8d9a3246ed1649c0c42bd03730f3154f28aad7e5fb35&req=dSEgE81%2BlIVaXfMW1HO4zVeC9Mzxk9KS103ldcbnXDdvobNZbDlIG4uNqYFB%0ANbM%2Ff4g%2F7umbJuTRI%2FY%3D%0A)

**Step 4:** If you are using cPanel to generate the keys, (1st method discussed here) Use the Generate a New Key button. If you are using the 2nd method where either you have already generated a [keypair and need to import them see this link](https://help.namehero.com/en/articles/9540951-how-to-connect-to-your-website-via-ssh-sftp-using-filezilla-pc?q=how+to+login+to+cpanel).

[![](https://storage.crisp.chat/users/helpdesk/website/a4fc941b6dd6c800/7b702baf-0e00-40c0-b3be-9814b9_7lgk8x.png)](https://downloads.intercomcdn.com/i/o/1175410116/513af26c49b3c1813c0564e5/Screenshot+2024-09-10+114113.png?expires=1728569700&signature=a2da9730ab0a88d56f82f3f29db9678007f7d0fa025ca0da7287841e26db4e71&req=dSEgE81%2FnYBeX%2FMW1HO4zY%2FbPmMySYIt62ClVozEY9bIz6kuzNyrL9D2ESnU%0Af05yHGB7Mhul9JIEeXc%3D%0A)

We recommend using the password generator for strong random passwords.

[![](https://storage.crisp.chat/users/helpdesk/website/556387da47c9a400/fea0e587-abcb-4c33-b7e7-b6390e_1oaoxgy.png)](https://downloads.intercomcdn.com/i/o/1175412793/e68797b237405ac954c8b356/Screenshot+2024-09-10+114407.png?expires=1728569700&signature=9711944db83d051d48cdaaf3f3bd97b4eae49e70f2a9d18dd20f09b9710ab040&req=dSEgE81%2Fn4ZWWvMW1HO4zfdijyFmdaukeR9qNvMmz%2FYIMpDyliZsuA4U5SJ2%0Avl2pZFvswdRRjzIAov8%3D%0A)

**Step 5:** Once you generate they keys, you still have to authorize it! Click on Manage to the right.

[![](https://storage.crisp.chat/users/helpdesk/website/ace5a25432940800/e14bd211-4d44-40a7-81ed-4a1dad_1mdupas.png)](https://downloads.intercomcdn.com/i/o/1175414462/4442e973ca793ee223119c93/Screenshot+2024-09-10+114338.png?expires=1728569700&signature=64f353d89779d4b87d6fadf0314d51847aff6f4288a79d6cd4b9dd02127297a9&req=dSEgE81%2FmYVZW%2FMW1HO4zRyZ4YnQ8dbrxfCzKFoiQFN%2F9z%2BdRa9k4ic03KeN%0A8%2Bce%2F9x%2B8gOk8Qv8KAY%3D%0A)

**Step 6:** On the next page, click on Authorize. That's it!

[![](https://storage.crisp.chat/users/helpdesk/website/39b74cd38d468c00/5d5b27f3-174e-4de7-8115-132721_unbbka.png)](https://downloads.intercomcdn.com/i/o/1175414884/2df6d2edcf3f55f72dbf69df/Screenshot+2024-09-10+114435.png?expires=1728569700&signature=c50fc50b445177f7b21e1a5d6a840c9278853222a14622ccafc48e3ea89229de&req=dSEgE81%2FmYlXXfMW1HO4zdZqgAfY1BjRcF%2Bbp03TClNKCgvIPNw%2FmQmd%2Blf0%0ADZgKtfF41QNtp3UkV7Q%3D%0A)