{"id":30104,"date":"2024-07-17T11:57:16","date_gmt":"2024-07-17T09:57:16","guid":{"rendered":"https:\/\/blog.1-grid.com\/?p=30104"},"modified":"2024-10-07T11:09:12","modified_gmt":"2024-10-07T09:09:12","slug":"ssh-logins-how-to-generate-secure-shell-keys-2","status":"publish","type":"post","link":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/","title":{"rendered":"SSH Logins: How to Generate Secure Shell Keys"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Looking for a secure way to access your server? Public key authentication is your best bet! By disabling password-based logins, you can protect your server from brute-force attacks, keeping your data safe and sound.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here&#8217;s your step-by-step <a href=\"https:\/\/1grid.co.za\/\">1-grid<\/a> guide on how to create and use SSH keys for safer logins. It\u2019s easier than you might think and the perfect way to protect your data.<\/span><\/p>\n<p><span style=\"color: #00ccff;\"><strong>Learn how to protect and generate SSH Keys for secure logins, the <a style=\"color: #00ccff;\" href=\"https:\/\/1grid.co.za\/hosting\/\">1-grid<\/a> way.<\/strong><\/span><\/p>\n<h1><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-30105 size-large\" src=\"https:\/\/1grid.co.za\/blog\/\/wp-content\/uploads\/2024\/05\/SSH-Logins-1024x683.jpg\" alt=\"SSH Logins: How to Generate Secure Shell Keys\" width=\"1024\" height=\"683\" srcset=\"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-1024x683.jpg 1024w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-300x200.jpg 300w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-768x512.jpg 768w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-1536x1024.jpg 1536w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-scaled.jpg 2048w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-1080x720.jpg 1080w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-1280x853.jpg 1280w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-980x653.jpg 980w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/SSH-Logins-480x320.jpg 480w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/h1>\n<p><span style=\"font-weight: 400;\">We offer both <\/span><a href=\"https:\/\/1grid.co.za\/hosting\/dedicated-servers\/\"><span style=\"font-weight: 400;\">Dedicated<\/span><\/a><span style=\"font-weight: 400;\"> and <\/span><a href=\"https:\/\/1grid.co.za\/hosting\/vps-hosting\/\"><span style=\"font-weight: 400;\">VPS servers<\/span><\/a><span style=\"font-weight: 400;\"> with an array of Linux options.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Need to manage your Linux-based server efficiently? With <\/span><a href=\"https:\/\/1grid.co.za\/\"><span style=\"font-weight: 400;\">1-grid<\/span><\/a><span style=\"font-weight: 400;\">, setting up\u00a0 SSH connections is simple.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Our easy-to-follow guides ensure you can connect to your server securely and manage it effortlessly, saving you time and hassle.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">What is an SSH Key?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">SSH or Secure Shell is a cryptographic key used to communicate with servers or <a href=\"https:\/\/1grid.co.za\/hosting\/cpanel-hosting\/\">Linux hosts<\/a>.\u00a0<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Establishing SSH Connectivity<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">While working with Linux-based servers, you will likely spend most of your time in a terminal session. Terminal sessions are connected to your server through SSH.\u00a0<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Simplifying Server Authentication<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Tired of remembering multiple passwords for your servers? With SSH keys, you only need one. We\u2019ll help you simplify server authentication, making your admin tasks smoother and more secure.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">System administrators prefer using SSH keys because once they have been created, one key can unlock multiple servers, making authentication easier. It&#8217;s like having a master key for all your servers!<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How to Create a Key Pair<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">You can generate a key pair with the steps below:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Open a terminal or command prompt on your computer. Remember to log in as the user for whom you\u2019re creating the keys.<\/span><\/li>\n<li>Generate a new SSH key pair by running the following command:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-30134 size-full\" src=\"https:\/\/1grid.co.za\/blog\/\/wp-content\/uploads\/2024\/05\/1.png\" alt=\"SSH Logins: How to Generate Secure Shell Keys\" width=\"983\" height=\"226\" srcset=\"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/1.png 983w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/1-300x69.png 300w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/1-768x177.png 768w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/1-980x225.png 980w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/1-480x110.png 480w\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><\/p>\n<ul>\n<li>Select Enter and enter a password for your Key Pair.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-30130 size-full\" src=\"https:\/\/1grid.co.za\/blog\/\/wp-content\/uploads\/2024\/05\/4.png\" alt=\"SSH Logins: How to Generate Secure Shell Keys\" width=\"957\" height=\"452\" srcset=\"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/4.png 957w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/4-300x142.png 300w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/4-768x363.png 768w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/4-480x227.png 480w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You have now generated a public and private authentication key. Once successfully exchanged with your server\u2019s public key, you can use the SSH key-based authentication to log in.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How to Exchange an SSH Key:<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">You\u2019re all set to complete a key exchange. While logged in as the root user, you can set up SSH key-based authentication with a LAN (local area network) host.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The example below uses the LAN IP: 192.168.100.105.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-30140 size-full\" src=\"https:\/\/1grid.co.za\/blog\/\/wp-content\/uploads\/2024\/05\/6.png\" alt=\"SSH Logins: How to Generate Secure Shell Keys\" width=\"878\" height=\"260\" srcset=\"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/6.png 878w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/6-300x89.png 300w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/6-768x227.png 768w, https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/05\/6-480x142.png 480w\" sizes=\"(max-width: 878px) 100vw, 878px\" \/><\/p>\n<h3><span style=\"font-weight: 400;\">How to Authenticate an SSH Key<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Go ahead and authenticate the password for the host&#8217;s root user. Once you have done so, you will be notified that the key has been added. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can now log in with ssh root@192.168.100.105. The screen will prompt you to enter the key password.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Your key has now been generated and exchanged, and your server is secure.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Want to find out more about our high-performance servers? Click <\/span><a href=\"https:\/\/1grid.co.za\/hosting\/dedicated-servers\/#pricing\"><span style=\"font-weight: 400;\">here<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ready to secure your server? Learn how to authenticate, generate and exchange SSH Keys in a few easy steps. <\/p>\n","protected":false},"author":24,"featured_media":30161,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[2970],"tags":[2974,2973,2971,2972],"class_list":["post-30104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","tag-dedicated-servers","tag-domains","tag-ssh-keys","tag-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SSH Logins: How to Generate Secure Shell Keys | 1-grid Blog<\/title>\n<meta name=\"description\" content=\"Learn how to authenticate, generate and exchange an SSH Keys in a few easy steps. Log in as a root user and follow along our visual guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SSH Logins: How to Generate Secure Shell Keys | 1-grid Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to authenticate, generate and exchange an SSH Keys in a few easy steps. Log in as a root user and follow along our visual guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-17T09:57:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-07T09:09:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/07\/Learn-how-to-protect-and-generate-SSH-Keys-for-secure-logins-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1365\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"1-grid Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"1-grid Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SSH Logins: How to Generate Secure Shell Keys | 1-grid Blog","description":"Learn how to authenticate, generate and exchange an SSH Keys in a few easy steps. Log in as a root user and follow along our visual guide.","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:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/","og_locale":"en_US","og_type":"article","og_title":"SSH Logins: How to Generate Secure Shell Keys | 1-grid Blog","og_description":"Learn how to authenticate, generate and exchange an SSH Keys in a few easy steps. Log in as a root user and follow along our visual guide.","og_url":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/","og_site_name":"1-grid Blog","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_published_time":"2024-07-17T09:57:16+00:00","article_modified_time":"2024-10-07T09:09:12+00:00","og_image":[{"width":2048,"height":1365,"url":"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/07\/Learn-how-to-protect-and-generate-SSH-Keys-for-secure-logins-scaled.jpg","type":"image\/jpeg"}],"author":"1-grid Team","twitter_card":"summary_large_image","twitter_creator":"@1grid_hosting","twitter_site":"@1grid_hosting","twitter_misc":{"Written by":"1-grid Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#article","isPartOf":{"@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/"},"author":{"name":"1-grid Team","@id":"https:\/\/1grid.co.za\/blog\/#\/schema\/person\/bffb274b542eaf10c31940c6d4588265"},"headline":"SSH Logins: How to Generate Secure Shell Keys","datePublished":"2024-07-17T09:57:16+00:00","dateModified":"2024-10-07T09:09:12+00:00","mainEntityOfPage":{"@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/"},"wordCount":458,"publisher":{"@id":"https:\/\/1grid.co.za\/blog\/#organization"},"image":{"@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#primaryimage"},"thumbnailUrl":"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/07\/Learn-how-to-protect-and-generate-SSH-Keys-for-secure-logins-scaled.jpg","keywords":["Dedicated Servers","Domains","SSH Keys","Web Hosting"],"articleSection":["Guides"],"inLanguage":"en-ZA"},{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/","url":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/","name":"SSH Logins: How to Generate Secure Shell Keys | 1-grid Blog","isPartOf":{"@id":"https:\/\/1grid.co.za\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#primaryimage"},"image":{"@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#primaryimage"},"thumbnailUrl":"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/07\/Learn-how-to-protect-and-generate-SSH-Keys-for-secure-logins-scaled.jpg","datePublished":"2024-07-17T09:57:16+00:00","dateModified":"2024-10-07T09:09:12+00:00","description":"Learn how to authenticate, generate and exchange an SSH Keys in a few easy steps. Log in as a root user and follow along our visual guide.","breadcrumb":{"@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#breadcrumb"},"inLanguage":"en-ZA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#primaryimage","url":"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/07\/Learn-how-to-protect-and-generate-SSH-Keys-for-secure-logins-scaled.jpg","contentUrl":"https:\/\/1grid.co.za\/blog\/wp-content\/uploads\/2024\/07\/Learn-how-to-protect-and-generate-SSH-Keys-for-secure-logins-scaled.jpg","width":2048,"height":1365,"caption":"SSH Logins: How to Generate Secure Shell Keys"},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/blog\/ssh-logins-how-to-generate-secure-shell-keys-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/blog\/"},{"@type":"ListItem","position":2,"name":"SSH Logins: How to Generate Secure Shell Keys"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/blog\/#website","url":"https:\/\/1grid.co.za\/blog\/","name":"1-grid Blog","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-ZA"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/blog\/#organization","name":"1-grid","url":"https:\/\/1grid.co.za\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/1grid.co.za\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/blog.1-grid.com\/wp-content\/uploads\/2018\/05\/Gridhost-Becomes-1-grid-1.png","contentUrl":"https:\/\/blog.1-grid.com\/wp-content\/uploads\/2018\/05\/Gridhost-Becomes-1-grid-1.png","width":1920,"height":1080,"caption":"1-grid"},"image":{"@id":"https:\/\/1grid.co.za\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/x.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/www.linkedin.com\/company\/1-grid\/"]},{"@type":"Person","@id":"https:\/\/1grid.co.za\/blog\/#\/schema\/person\/bffb274b542eaf10c31940c6d4588265","name":"1-grid Team","description":"Marketing Communication"}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/posts\/30104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/comments?post=30104"}],"version-history":[{"count":27,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/posts\/30104\/revisions"}],"predecessor-version":[{"id":30674,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/posts\/30104\/revisions\/30674"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/media\/30161"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/media?parent=30104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/categories?post=30104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/blog\/wp-json\/wp\/v2\/tags?post=30104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}