{"id":245737,"date":"2025-10-08T10:17:52","date_gmt":"2025-10-08T10:17:52","guid":{"rendered":"https:\/\/www.bluehost.com\/blog\/?p=245737"},"modified":"2026-03-19T16:04:52","modified_gmt":"2026-03-19T16:04:52","slug":"ssh-public-private-keys","status":"publish","type":"post","link":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/","title":{"rendered":"How to Generate an SSH Public or Private Key"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What Are SSH Keys For?<\/h2>\n\n\n\n<p>Using a public or private keys to authenticate when logging into&nbsp;<a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-access\">SSH<\/a>&nbsp;can provide convenience or security. The public or private key is a secure alternative to password login. No username\/password is required to connect to the server via SSH. Instead, the unique public and private keys provide secure authentication. You&#8217;re advised to use a key password that&#8217;s different from your cPanel password.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#Difference\">Difference Between Public and Private SSH Keys<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#GenerateKeys\">How to Generate SSH Keys in cPanel<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#ConnectToServer\">How to Connect to Your Server Using SSH<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#BestPractices\">Best Practices for SSH Key Management<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#Summary\">Summary<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>Difference Between Public and Private SSH Keys<\/h2>\n\n\n\n<p>Your public key is stored on the&nbsp;<a href=\"https:\/\/www.bluehost.com\/blog\/what-is-a-server\/\">server<\/a>, while your private key is stored locally on your computer or server. When accessing a server, your computer&#8217;s private key is compared to the server&#8217;s public key. If the two match, you&#8217;ll be granted remote access to the server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>How to Generate SSH Keys in cPanel<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#generate-public-key\">Generate the Public SSH Key<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#authorize-public-key\">Authorize the Public Key<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bluehost.com\/help\/article\/ssh-public-private-keys#view-download-private-key\">View and Download the Private Key<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"generate-public-key\">Generate the Public SSH Key<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your&nbsp;<a href=\"https:\/\/www.bluehost.com\/my-account\/login\">Bluehost Account Manager<\/a>.<\/li>\n\n\n\n<li>Click the&nbsp;<strong>Hosting<\/strong>&nbsp;tab on the left menu.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-hosting-tab.png\" alt=\"Account Manager - Hosting tab\"><\/li>\n\n\n\n<li>Under&nbsp;<strong>Quick Links<\/strong>, click on&nbsp;<strong>cPanel<\/strong>.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-hosting-cpanel.png\" alt=\"Quick Links - cPanel button\"><\/li>\n\n\n\n<li>Select&nbsp;<strong>SSH Access<\/strong>&nbsp;under the&nbsp;<strong>Security<\/strong>&nbsp;category.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-ssh-access.png\" alt=\"cPanel - Security section - SSH Access\"><\/li>\n\n\n\n<li>From the&nbsp;<strong>Manage SSH Keys<\/strong>&nbsp;page, click&nbsp;<strong>Generate a New Key<\/strong>.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-generate-a-new-key.png\" alt=\"Manage SSH Keys - Generate a New Key\"><\/li>\n\n\n\n<li>Enter a new&nbsp;<strong>Key password,<\/strong>&nbsp;then ensure that you type it again under the&nbsp;<strong>Reenter Password&nbsp;<\/strong>field.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-ssh-key-password.png\" alt=\"Manage SSH Keys - Enter key password\"><\/li>\n\n\n\n<li>Choose&nbsp;<strong>DSA<\/strong>&nbsp;or&nbsp;<strong>RSA<\/strong>&nbsp;for the type.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-key-type-rsa.png\" alt=\"Manage SSH Keys - DSA or RSA\">It&#8217;s recommended that you choose the&nbsp;<strong>RSA SSH key<\/strong>. Note that DSA keys provide quicker key generation and signing times, while RSA keys provide quicker verification times.<\/li>\n\n\n\n<li>Choose a&nbsp;<strong>Key size<\/strong>. It&#8217;s recommended to use&nbsp;<strong>2048<\/strong>&nbsp;or&nbsp;<strong>higher<\/strong>.<br><img decoding=\"async\" height=\"315\" width=\"530\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-key-size.png\" alt=\"Manage SSH Keys - Key size\"><\/li>\n\n\n\n<li>Click&nbsp;<strong>Generate Key<\/strong>.<\/li>\n\n\n\n<li>Click the&nbsp;<strong>Go Back<\/strong>&nbsp;button.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"authorize-public-key\">Authorize the Public Key<\/h4>\n\n\n\n<p>Authorizing the key will add the public key to the authorized_keys file.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click&nbsp;<strong>Manage<\/strong>&nbsp;from the&nbsp;<strong>Public Keys<\/strong>&nbsp;section for the key you want to authorize.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-public-keys-manage.png\" alt=\"Manage SSH Keys - Public Keys\"><\/li>\n\n\n\n<li>Click the&nbsp;<strong>Authorize<\/strong>&nbsp;button for your newly created key.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/ssh-access-authorize.png\" alt=\"Manage SSH Keys - Authorize button\"><\/li>\n\n\n\n<li>Click&nbsp;<strong>Go Back<\/strong>&nbsp;to return to the main page.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"view-download-private-key\">View or Download the Private Key<\/h4>\n\n\n\n<p>The private key needs to be stored on your local computer.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To the right of your private key, click&nbsp;<strong>View\/Download<\/strong>.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/am-private-keys-view-download.png\" alt=\"Manage SSH Keys - View\/Download Private Key\"><\/li>\n\n\n\n<li>Click the&nbsp;<strong>Download Key<\/strong>&nbsp;button to download the private key.<br><img decoding=\"async\" src=\"https:\/\/content.bluehost.com\/bluehost\/img\/bluehost\/account\/ssh-access-download-key.png\" alt=\"Manage SSH Keys - Download Key\">\n<ul class=\"wp-block-list\">\n<li>If on Linux or Mac OS, copy the&nbsp;<strong>id_dsa<\/strong>&nbsp;file to your&nbsp;<strong>~\/.ssh folder<\/strong>.<\/li>\n\n\n\n<li>On Windows, you&#8217;ll want to move it someplace safe.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p><strong>Also read: <\/strong><a href=\"https:\/\/www.bluehost.com\/blog\/generate-ssh-keys\/\">Generate SSH Keys: Windows &amp; macOS\/Unix (PowerShell, PuTTY)<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ConnectToServer\">How to Connect to Your Server Using SSH<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"windows\">Windows<\/h3>\n\n\n\n<p>To log in to your server with PuTTY and a public key, please see&nbsp;<a href=\"https:\/\/www.bluehost.com\/help\/article\/using-ssh-on-windows-putty\">Using SSH on Windows (PuTTY)<\/a>&nbsp;for step-by-step instructions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"linux-macos\">Linux or MacOS<\/h3>\n\n\n\n<p>To log in to your server with a password using macOS or Linux, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open your Terminal.<\/li>\n\n\n\n<li>Enter the following command. Replace port with the port number, ssh-key with the file path, and IP with your IP address. <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -p port -i ssh-key user@IP<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Enter the passphrase for the key.<\/li>\n\n\n\n<li>Using a passphrase with your SSH key is important because it prevents unauthorized access by individuals who don&#8217;t have the passphrase. Without a passphrase, anyone accessing your computer could copy your private key.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><code>'~\/.ssh\/id_dsa':<\/code><\/code><\/pre>\n\n\n\n<p>After entering the passphrase, you&#8217;ll be connected to the server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"BestPractices\">Best Practices for SSH Key Management<\/h2>\n\n\n\n<p>Maintaining the security of SSH keys is essential for safeguarding access to your systems. Follow these best practices to mitigate the risk of unauthorized access and ensure the integrity of your infrastructure:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Use strong passphrases<\/strong>: Always protect your private keys with strong, complex passphrases. This ensures that even if a key is compromised, you&#8217;ll still be able to prevent unauthorized access.<\/li>\n\n\n\n<li><strong>Regularly rotate keys<\/strong>: Implement a policy for the regular rotation of SSH keys to minimize the risk of exposure. Change&nbsp;the keys periodically to help maintain&nbsp;the security of your connections.<\/li>\n\n\n\n<li><strong>Encrypt private keys<\/strong>: Store private keys using strong encryption on your disk. Encryption acts as a second line of defense against unauthorized access. This safeguards your keys even if your system is compromised.<\/li>\n\n\n\n<li><strong>Disable password authentication<\/strong>: Switch off password-based authentication on your servers and rely solely on key-based authentication. This significantly reduces the risk of brute-force attacks.<\/li>\n\n\n\n<li><strong>Monitor key usage<\/strong>: Set up monitoring and logging for SSH key usage to quickly detect and respond to suspicious activities. This helps identify potential security breaches early.<\/li>\n\n\n\n<li><strong>Educate users on security practices<\/strong>: Educate all users about the risks of mishandling SSH keys and promote a culture of security awareness. Training should cover proper handling, storage, and usage of SSH keys.<\/li>\n\n\n\n<li><strong>Audit SSH key access<\/strong>. Regularly audit your SSH keys and access rights to ensure that only authorized keys are used and comply with your organization&#8217;s security policies. Remove any obsolete or unauthorized keys promptly.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>Summary<\/h2>\n\n\n\n<p>Our guide takes you through the steps to generate your own SSH public and private key, authorize it, and view or download the private key. Moreover, we&#8217;ve got instructions for connecting to your server using SSH on Windows, macOS, or Linux. By using SSH keys, you can ensure a secure login process.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to generate SSH public &#038; private keys step-by-step for secure access &#038; authentication.<\/p>\n","protected":false},"author":177,"featured_media":245714,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","inline_featured_image":false,"footnotes":""},"categories":[381],"tags":[3330,3343],"ppma_author":[2957],"class_list":["post-245737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting","tag-how-to-guides","tag-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Generate an SSH Public or Private Key - Bluehost Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/245737\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Generate an SSH Public or Private Key\" \/>\n<meta property=\"og:description\" content=\"Learn how to generate SSH public &amp; private keys step-by-step for secure access &amp; authentication.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/\" \/>\n<meta property=\"og:site_name\" content=\"Bluehost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bluehost\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-08T10:17:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-19T16:04:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sampreeth Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bluehost\" \/>\n<meta name=\"twitter:site\" content=\"@bluehost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sampreeth Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/\"},\"author\":{\"name\":\"Sampreeth Kumar\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/670b4f1298a62fee8a44d5c0c20b1443\"},\"headline\":\"How to Generate an SSH Public or Private Key\",\"datePublished\":\"2025-10-08T10:17:52+00:00\",\"dateModified\":\"2026-03-19T16:04:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/\"},\"wordCount\":904,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png\",\"keywords\":[\"How-To Guides\",\"Tutorials\"],\"articleSection\":[\"Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/\",\"url\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/\",\"name\":\"How to Generate an SSH Public or Private Key - Bluehost Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png\",\"datePublished\":\"2025-10-08T10:17:52+00:00\",\"dateModified\":\"2026-03-19T16:04:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png\",\"width\":1920,\"height\":1080,\"caption\":\"Things to Keep in Mind When Picking a WordPress Theme\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.bluehost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hosting\",\"item\":\"https:\/\/www.bluehost.com\/blog\/category\/hosting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Generate an SSH Public or Private Key\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#website\",\"url\":\"https:\/\/www.bluehost.com\/blog\/\",\"name\":\"Bluehost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.bluehost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#organization\",\"name\":\"Bluehost\",\"url\":\"https:\/\/www.bluehost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg\",\"contentUrl\":\"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg\",\"width\":136,\"height\":24,\"caption\":\"Bluehost\"},\"image\":{\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/bluehost\/\",\"https:\/\/x.com\/bluehost\",\"https:\/\/www.linkedin.com\/company\/bluehost-com\/\",\"https:\/\/www.youtube.com\/user\/bluehost\",\"https:\/\/en.wikipedia.org\/wiki\/Bluehost\"],\"description\":\"Bluehost is a leading web hosting provider empowering millions of websites worldwide. \\u2028Discover how Bluehost's expertise, reliability, and innovation can help you achieve your online goals.\",\"telephone\":\"+1-888-401-4678\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/670b4f1298a62fee8a44d5c0c20b1443\",\"name\":\"Sampreeth Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/image\/537438955f644d8ef24f597ed25cff30\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/305e2da0933ec23676f799ea312c9625fb970e6aa482cfcb332563714190513e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/305e2da0933ec23676f799ea312c9625fb970e6aa482cfcb332563714190513e?s=96&d=mm&r=g\",\"caption\":\"Sampreeth Kumar\"},\"description\":\"I'm Sampreet, a seasoned technical writer with a passion for simplifying complex topics into a clear and engaging content. At times when I'm not crafting a piece of guide, you'll find me playing cricket\/ football or exploring new destinations and reading autobiographies of influential personalities.\",\"url\":\"https:\/\/www.bluehost.com\/blog\/author\/sampreeth-kumarnewfold-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Generate an SSH Public or Private Key - Bluehost Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/245737\/","og_locale":"en_US","og_type":"article","og_title":"How to Generate an SSH Public or Private Key","og_description":"Learn how to generate SSH public & private keys step-by-step for secure access & authentication.","og_url":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/","og_site_name":"Bluehost Blog","article_publisher":"https:\/\/www.facebook.com\/bluehost\/","article_published_time":"2025-10-08T10:17:52+00:00","article_modified_time":"2026-03-19T16:04:52+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png","type":"image\/png"}],"author":"Sampreeth Kumar","twitter_card":"summary_large_image","twitter_creator":"@bluehost","twitter_site":"@bluehost","twitter_misc":{"Written by":"Sampreeth Kumar","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#article","isPartOf":{"@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/"},"author":{"name":"Sampreeth Kumar","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/670b4f1298a62fee8a44d5c0c20b1443"},"headline":"How to Generate an SSH Public or Private Key","datePublished":"2025-10-08T10:17:52+00:00","dateModified":"2026-03-19T16:04:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/"},"wordCount":904,"commentCount":0,"publisher":{"@id":"https:\/\/www.bluehost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png","keywords":["How-To Guides","Tutorials"],"articleSection":["Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/","url":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/","name":"How to Generate an SSH Public or Private Key - Bluehost Blog","isPartOf":{"@id":"https:\/\/www.bluehost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png","datePublished":"2025-10-08T10:17:52+00:00","dateModified":"2026-03-19T16:04:52+00:00","breadcrumb":{"@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#primaryimage","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2025\/10\/generic-bluehost-1.png","width":1920,"height":1080,"caption":"Things to Keep in Mind When Picking a WordPress Theme"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bluehost.com\/blog\/ssh-public-private-keys\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bluehost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Hosting","item":"https:\/\/www.bluehost.com\/blog\/category\/hosting\/"},{"@type":"ListItem","position":3,"name":"How to Generate an SSH Public or Private Key"}]},{"@type":"WebSite","@id":"https:\/\/www.bluehost.com\/blog\/#website","url":"https:\/\/www.bluehost.com\/blog\/","name":"Bluehost","description":"","publisher":{"@id":"https:\/\/www.bluehost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bluehost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bluehost.com\/blog\/#organization","name":"Bluehost","url":"https:\/\/www.bluehost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg","contentUrl":"https:\/\/www.bluehost.com\/blog\/wp-content\/uploads\/2023\/08\/bluehost-logo.svg","width":136,"height":24,"caption":"Bluehost"},"image":{"@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/bluehost\/","https:\/\/x.com\/bluehost","https:\/\/www.linkedin.com\/company\/bluehost-com\/","https:\/\/www.youtube.com\/user\/bluehost","https:\/\/en.wikipedia.org\/wiki\/Bluehost"],"description":"Bluehost is a leading web hosting provider empowering millions of websites worldwide. \u2028Discover how Bluehost's expertise, reliability, and innovation can help you achieve your online goals.","telephone":"+1-888-401-4678"},{"@type":"Person","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/670b4f1298a62fee8a44d5c0c20b1443","name":"Sampreeth Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bluehost.com\/blog\/#\/schema\/person\/image\/537438955f644d8ef24f597ed25cff30","url":"https:\/\/secure.gravatar.com\/avatar\/305e2da0933ec23676f799ea312c9625fb970e6aa482cfcb332563714190513e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/305e2da0933ec23676f799ea312c9625fb970e6aa482cfcb332563714190513e?s=96&d=mm&r=g","caption":"Sampreeth Kumar"},"description":"I'm Sampreet, a seasoned technical writer with a passion for simplifying complex topics into a clear and engaging content. At times when I'm not crafting a piece of guide, you'll find me playing cricket\/ football or exploring new destinations and reading autobiographies of influential personalities.","url":"https:\/\/www.bluehost.com\/blog\/author\/sampreeth-kumarnewfold-com\/"}]}},"authors":[{"term_id":2957,"user_id":177,"is_guest":0,"slug":"sampreeth-kumarnewfold-com","display_name":"Sampreeth Kumar","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/305e2da0933ec23676f799ea312c9625fb970e6aa482cfcb332563714190513e?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":"","11":"","12":"","13":"","14":"","15":""}],"_links":{"self":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/245737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/users\/177"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/comments?post=245737"}],"version-history":[{"count":4,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/245737\/revisions"}],"predecessor-version":[{"id":268321,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/posts\/245737\/revisions\/268321"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/media\/245714"}],"wp:attachment":[{"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/media?parent=245737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/categories?post=245737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/tags?post=245737"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.bluehost.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=245737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}