{"id":1973,"date":"2025-06-18T14:00:16","date_gmt":"2025-06-18T14:00:16","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=1973"},"modified":"2025-06-26T11:12:57","modified_gmt":"2025-06-26T11:12:57","slug":"use-sftp-to-connect-a-cpanel-account","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/use-sftp-to-connect-a-cpanel-account\/","title":{"rendered":"How to Use SFTP to Connect a cPanel Account?"},"content":{"rendered":"\n<p>In this guide, you\u2019ll learn <strong>how to use SFTP to connect a cPanel account<\/strong> using your cPanel login credentials. This tutorial is ideal for developers, webmasters, and even beginners who prefer secure file transfers without compromising ease of use.<\/p>\n\n\n\n<p>When managing your website&#8217;s backend, security is non-negotiable. One of the best ways to safely transfer files is by using <strong>SFTP (Secure File Transfer Protocol)<\/strong>. Unlike traditional FTP, SFTP encrypts your connection \u2014 protecting your sensitive credentials and files during transfer.<\/p>\n\n\n\n<p>Need help managing files inside <a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a>? Check out our <a>How to Upload a File Using File Manager<\/a> guide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step of: How to Use SFTP to Connect a cPanel Account<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Creating SSH Access Keys in cPanel Made Easy<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. Log in to Your cPanel Account<\/h4>\n\n\n\n<p>First, access your <a href=\"https:\/\/hostrago.com\/knowledge-base\/how-to-login-in-cpanel\/\">cPanel dashboard<\/a>.<\/p>\n\n\n\n<p>Enter your <strong>username and password<\/strong><\/p>\n\n\n\n<p>Navigate to <code>https:\/\/yourdomain.com\/cpanel<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Go to the <strong>SSH<\/strong>\u00a0Icon inside the\u00a0<strong>Security<\/strong>\u00a0section.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"743\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Go-to-the-SSH-Icon-inside-the-Security-section-1024x743.webp\" loading=\"lazy\" alt=\"Go to the SSH\u00a0Icon inside the\u00a0Security\u00a0section.\" class=\"wp-image-1974\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Go-to-the-SSH-Icon-inside-the-Security-section-1024x743.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Go-to-the-SSH-Icon-inside-the-Security-section-300x218.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Go-to-the-SSH-Icon-inside-the-Security-section-768x558.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Go-to-the-SSH-Icon-inside-the-Security-section-1536x1115.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Go-to-the-SSH-Icon-inside-the-Security-section-2048x1487.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">3. Click on\u00a0<strong>Manage SSH Keys\u00a0<\/strong>>> Generate a New Key.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"376\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Click-on-Manage-SSH-Keys-1024x376.webp\" loading=\"lazy\" alt=\"Click on\u00a0Manage SSH Keys\" class=\"wp-image-1975\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Click-on-Manage-SSH-Keys-1024x376.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Click-on-Manage-SSH-Keys-300x110.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Click-on-Manage-SSH-Keys-768x282.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Click-on-Manage-SSH-Keys-1536x564.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Click-on-Manage-SSH-Keys-2048x752.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"249\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Generate-a-New-Key-1024x249.webp\" loading=\"lazy\" alt=\"Generate a New Key\" class=\"wp-image-1976\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Generate-a-New-Key-1024x249.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Generate-a-New-Key-300x73.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Generate-a-New-Key-768x187.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Generate-a-New-Key-1536x373.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Generate-a-New-Key-2048x497.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">4. Keep the default key name unchanged, enter your password, and click the &#8220;Generate Key&#8221; button.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"513\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/click-the-Generate-Key-button-1024x513.webp\" loading=\"lazy\" alt=\"click the Generate Key button.\" class=\"wp-image-1977\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/click-the-Generate-Key-button-1024x513.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/click-the-Generate-Key-button-300x150.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/click-the-Generate-Key-button-768x385.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/click-the-Generate-Key-button-1536x770.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/click-the-Generate-Key-button.webp 1550w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">5. Next, to allow this key to access your cPanel account, click the &#8220;Manage&#8221; button, then select the &#8220;Authorize&#8221; option to activate it.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"121\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/access-your-cPanel-account-click-the-Manage-button-1024x121.webp\" loading=\"lazy\" alt=\"access your cPanel account, click the Manage button\" class=\"wp-image-1978\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/access-your-cPanel-account-click-the-Manage-button-1024x121.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/access-your-cPanel-account-click-the-Manage-button-300x35.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/access-your-cPanel-account-click-the-Manage-button-768x91.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/access-your-cPanel-account-click-the-Manage-button-1536x181.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/access-your-cPanel-account-click-the-Manage-button-2048x242.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">6. Download your private key by clicking the &#8220;View\/Download&#8221; button. Alternatively, you can find and download it from the <code>home\/.ssh<\/code> directory.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"128\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Download-your-private-key-1024x128.webp\" loading=\"lazy\" alt=\"Download your private key\" class=\"wp-image-1979\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Download-your-private-key-1024x128.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Download-your-private-key-300x37.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Download-your-private-key-768x96.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Download-your-private-key-1536x192.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Download-your-private-key-2048x256.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> Make sure to download and store the private key file in a secure location. It&#8217;s important that no one else has access to this sensitive file for your account\u2019s safety.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Enable SFTP Access for the FTP Account<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. Open FileZilla and click on <strong>Edit >> Setting<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"475\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Open-FileZilla-and-click-on-Edite.webp\" loading=\"lazy\" alt=\"Open FileZilla and click on Edite\" class=\"wp-image-1980\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Open-FileZilla-and-click-on-Edite.webp 816w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Open-FileZilla-and-click-on-Edite-300x175.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Open-FileZilla-and-click-on-Edite-768x447.webp 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2. Select SFTP as the connection type, click on &#8220;Add Key File,&#8221; and import your <code>.ppk<\/code> file. If you encounter any issues during import, simply rename the file extension to <code>.ppk<\/code> and try again.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"532\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Select-SFTP-as-the-connection-type.webp\" loading=\"lazy\" alt=\"Select SFTP as the connection type\" class=\"wp-image-1981\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Select-SFTP-as-the-connection-type.webp 763w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Select-SFTP-as-the-connection-type-300x209.webp 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">3. Once imported successfully, you\u2019ll be able to view the key file in FileZilla, as shown in the screenshot below.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"531\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/able-to-view-the-key-file-in-FileZilla.webp\" loading=\"lazy\" alt=\"able to view the key file in FileZilla\" class=\"wp-image-1982\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/able-to-view-the-key-file-in-FileZilla.webp 792w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/able-to-view-the-key-file-in-FileZilla-300x201.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/able-to-view-the-key-file-in-FileZilla-768x515.webp 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/figure>\n\n\n\n<p>Now, connect to your server using your FTP account through the SFTP protocol for a secure file transfer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<p><strong>Q1: What\u2019s the difference between FTP and SFTP?<\/strong><br>SFTP uses a secure, encrypted connection via SSH. FTP transfers files in plain text, making it vulnerable.<\/p>\n\n\n\n<p><strong>Q2: Can I use SFTP with an addon FTP account?<\/strong><br>Only if SSH access is enabled for that user. By default, only the main cPanel user has SFTP access.<\/p>\n\n\n\n<p><strong>Q3: What port is used for SFTP?<\/strong><br>Port <strong>22<\/strong> is the default SFTP port, unlike FTP which uses port 21.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Words<\/h2>\n\n\n\n<p>Now you know exactly <strong>how to use SFTP to connect a cPanel account<\/strong> \u2014 securely and reliably. It\u2019s a great way to manage your files without logging into the browser-based File Manager each time.<\/p>\n\n\n\n<p>Want more cPanel tutorials like this one? Visit the <a class=\"\" href=\"https:\/\/hostrago.com\/knowledge-base\/\">Hostrago Knowledge Base<\/a> for complete how-tos, security tips, and hosting walkthroughs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, you\u2019ll learn how to use SFTP to connect a cPanel account using your cPanel login credentials. This tutorial is ideal for developers,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1983,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[333,332,185,331,330],"class_list":["post-1973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-connect-cpanel-using-sftp","tag-cpanel-sftp","tag-hostrago-tutorial","tag-secure-ftp","tag-sftp-connection"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=1973"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1973\/revisions"}],"predecessor-version":[{"id":1984,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1973\/revisions\/1984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/1983"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=1973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=1973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=1973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}