
{"id":25879,"date":"2025-10-15T10:29:18","date_gmt":"2025-10-15T08:29:18","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=25879"},"modified":"2026-01-16T10:55:41","modified_gmt":"2026-01-16T09:55:41","slug":"how-to-set-up-ssh","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/how-to-set-up-ssh\/","title":{"rendered":"How to Set Up an SSH Connection with Contabo\u00a0"},"content":{"rendered":"\n<p>Managing a Contabo server requires both security and efficiency. One of the most important steps in securing remote access is setting up an <strong>SSH (Secure Shell)<\/strong> connection. This is a practical guide on understanding Secure Shell to configuring it on both <strong>Windows<\/strong> and <strong>Linux<\/strong> systems. Hosting websites, managing applications, or handling databases \u2013 in all these cases SSH ensures that your communication with the server remains private and encrypted.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-ssh\">What Is SSH\u00a0<\/h2>\n\n\n\n<p>Secure Shell is a network protocol that allows secure access to remote servers over an unsecured connection. It uses cryptographic keys instead of passwords, ensuring only authorized users can connect. SSH is essential for managing servers, transferring files, and executing commands safely and efficiently.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-use-ssh-for-your-server\">Why Use SSH for your Server<\/h2>\n\n\n\n<p>SSH is the most reliable way to connect to your Contabo server. Unlike traditional password-based logins, SSH key authentication offers stronger protection against unauthorized access. This makes it particularly important if you manage websites, applications, or remote files where security is a priority.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-setting-up-ssh-on-windows\">Setting Up SSH on Windows\u00a0<\/h2>\n\n\n\n<p>To connect securely from a Windows computer, you\u2019ll need <strong>PuTTY<\/strong> and <strong>PuTTYgen<\/strong>. These tools help you generate and manage SSH keys.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-install-putty\">Step 1: Install PuTTY\u00a0<\/h3>\n\n\n\n<p>Download and install PuTTY on your Windows machine.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-generate-ssh-keys-with-puttygen\">Step 2: Generate SSH Keys with PuTTYgen\u00a0<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open <strong>PuTTYgen<\/strong>.&nbsp;<\/li>\n<\/ol>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Click <strong>Generate <\/strong>and move your mouse randomly to add entropy.&nbsp;<\/li>\n<\/ol>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Add a <strong>Key Comment<\/strong> for easy identification.&nbsp;<\/li>\n<\/ol>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Set a <strong>Key Passphrase<\/strong> to protect your private key.&nbsp;<\/li>\n<\/ol>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Save both your <strong>Public Key<\/strong> and <strong>Private Key<\/strong> in a secure location.&nbsp;<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-copy-the-public-key\">Step 3: Copy the Public Key\u00a0<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In PuTTYgen, highlight the key text that starts with <code>ssh-RSA<\/code>.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy it to your clipboard.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-4-upload-the-public-key-to-your-contabo-server\">Step 4: Upload the Public Key to your Contabo Server\u00a0<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to your server via SSH.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the<code> authorized_keys <\/code>file.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Paste your public key, then save and exit.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-5-load-your-private-key-in-putty\">Step 5: Load Your Private Key in PuTTY\u00a0<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open PuTTY settings.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>Connection &gt; SSH &gt; Authentication<\/strong>.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Under <em>Private key file for authentication<\/em>, load your saved private key.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-6-connect-via-ssh\">Step 6: Connect via SSH\u00a0<\/h3>\n\n\n\n<p>You can now connect securely to your Contabo server using your SSH key.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-extra-tip\">Extra Tip\u00a0<\/h3>\n\n\n\n<p>If you reinstall your operating system via the <a href=\"https:\/\/my.contabo.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Contabo Customer Control Panel<\/a>, you can preload your SSH key before installation. This saves time and avoids using passwords at all.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-setting-up-ssh-on-linux\">Setting Up SSH on Linux\u00a0<\/h2>\n\n\n\n<p>Linux systems include built-in tools for generating and using <a href=\"https:\/\/contabo.com\/blog\/how-to-use-ssh-keys-with-your-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSH keys<\/a>. Key-based authentication is strongly recommended over passwords.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-generate-ssh-keys\">Step 1: Generate SSH Keys\u00a0<\/h3>\n\n\n\n<p>Run the following command on your local machine:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-keygen&nbsp;<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You\u2019ll be prompted to choose a filename.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set an optional passphrase for additional security (recommended).&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>This generates two files:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>private key<\/strong> (kept on your machine).&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>public key<\/strong> (uploaded to your server).&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-upload-the-public-key\">Step 2: Upload the Public Key\u00a0<\/h3>\n\n\n\n<p>Use the following command to upload your public key:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh-copy-id user@your-server&nbsp;<\/code><\/pre>\n\n\n\n<p>If you\u2019ve changed your SSH port, adjust the command with the <code>-p<\/code> flag.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-connect-securely\">Step 3: Connect Securely\u00a0<\/h3>\n\n\n\n<p>Now, your server will recognize your SSH key, allowing you to log in without a password.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-extra-tip-0\">Extra Tip\u00a0<\/h3>\n\n\n\n<p>As with Windows, you can preload your SSH key before reinstalling your OS in the Contabo Customer Control Panel.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-learn-more-in-our-video-about-secure-shell\">Learn more in our Video about Secure Shell<\/h2>\n\n\n\n<p>If you prefer a <strong>visual walk-through<\/strong>, we\u2019ve also created a step-by-step video tutorial that takes you through the entire process.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"How to set up an SSH connection with Contabo I Step-by-step tutorial\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Gx4KYpKs1i8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-final-thoughts\">Final Thoughts\u00a0<\/h2>\n\n\n\n<p>By setting up <a href=\"https:\/\/contabo.com\/blog\/how-to-use-ssh-keys-with-your-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSH keys<\/a>, you strengthen your server\u2019s security and streamline your workflow. Whether you\u2019re connecting from Windows with PuTTY or directly from Linux, Secure Shell eliminates password-based logins and helps prevent unauthorized access.&nbsp;<\/p>\n\n\n\n<p>With this setup complete, you can manage your Contabo server confidently and securely.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managing a Contabo server requires both security and efficiency. One of the most important steps in securing remote access is setting up an SSH (Secure Shell) connection. This is a practical guide on understanding Secure Shell to configuring it on both Windows and Linux systems. Hosting websites, managing applications, or handling databases \u2013 in all [&hellip;]<\/p>\n","protected":false},"author":77,"featured_media":25922,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"ppma_author":[3116],"class_list":["post-25879","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1.png",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1-150x150.png",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1-600x315.png",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1-768x403.png",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1.png",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1.png",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2025\/11\/Setup-an-SSH1.png",1200,630,false]},"uagb_author_info":{"display_name":"Anika Kopte","author_link":"https:\/\/contabo.com\/blog\/author\/anika\/"},"uagb_comment_info":0,"uagb_excerpt":"Managing a Contabo server requires both security and efficiency. One of the most important steps in securing remote access is setting up an SSH (Secure Shell) connection. This is a practical guide on understanding Secure Shell to configuring it on both Windows and Linux systems. Hosting websites, managing applications, or handling databases \u2013 in all&hellip;","authors":[{"term_id":3116,"user_id":77,"is_guest":0,"slug":"anika","display_name":"Anika Kopte","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/1c425caa652c679ae47e3f85a48de4e19f09d37bcb5593ba88a7aa4a08bb1d81?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/25879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=25879"}],"version-history":[{"count":5,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/25879\/revisions"}],"predecessor-version":[{"id":27361,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/25879\/revisions\/27361"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/25922"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=25879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=25879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=25879"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=25879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}