{"id":1604,"date":"2026-01-02T19:56:25","date_gmt":"2026-01-02T19:56:25","guid":{"rendered":"https:\/\/b2bhostingclub.com\/blog\/?p=1604"},"modified":"2026-02-04T14:14:36","modified_gmt":"2026-02-04T14:14:36","slug":"how-to-connect-to-ubuntu-linux-with-ssh-keys-using-putty-from-windows","status":"publish","type":"post","link":"https:\/\/b2bhostingclub.com\/blog\/how-to-connect-to-ubuntu-linux-with-ssh-keys-using-putty-from-windows\/","title":{"rendered":"How to Connect to Ubuntu Linux with SSH Keys Using PuTTy from Windows"},"content":{"rendered":"<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h2 id=\"introduction\" class=\"col col-md-12 d-h2 d-color-black d-h2 core-title\">Introduction<\/h2>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">It is generally recommended to use SSH key authentication whenever possible, especially for servers or systems accessible over the internet. This is because SSH key authentication is based on asymmetric cryptography and is considered more secure than password authentication. It provides stronger protection against brute-force attacks, as the private key is typically much longer and harder to guess than a password. SSH key authentication can also be automated, allowing for passwordless logins and easier integration with scripts and automated processes. Additionally, The private key can be protected with a passphrase, adding an extra layer of security. In the tutorial, we will show you how to connect to Ubuntu Linux VPS with SSH keys using puTTy from Windows.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"prerequisites\" class=\"col col-md-10 d-h2 d-color-black core-title\">Prerequisites<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500 core-title\"><b>Verify Your Remote Linux Server is Ready<\/b><\/div>\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500\">If you have ordered one from B2BHOSTINGCLUB, you will receive an email containing the information of your VPS, including server IP and login credentials.<\/div>\n<div class=\"col\"><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500 core-title\"><b>Install PuTTY on your local computer<\/b><\/div>\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500\">PuTTY is a popular open-source software suite that provides terminal emulation, secure file transfer, and SSH connectivity. It is primarily used on Windows systems to establish secure shell (SSH) connections to remote servers and devices. You can connect to your remote Linux server from your Windows system using the software. Download and install PuTTy from the\u00a0<a class=\"d-color-primary\" title=\"Download PuTTy\" href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noopener\">PuTTy download page<\/a>.<\/div>\n<div class=\"col\"><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500 core-title\"><b>Download PuTTYgen on your local computer<\/b><\/div>\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500\">PuTTY does not have native support for reading OpenSSH&#8217;s SSH-2 private key files. However, PuTTY provides a tool named PuTTYgen, which converts OpenSSH private key files into PuTTY&#8217;s format. This way, you can connect to your LInux servers from a Windows machine with the added security that SSH keys provide. Download PuTTYgen (puttygen.exe) from the\u00a0<a class=\"d-color-primary\" title=\"Download PuTTygen\" href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noopener\">download page<\/a>.<\/div>\n<div class=\"col\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"initial-setup-of-putty\" class=\"col col-md-10 d-h2 d-color-black core-title\">Initial Setup of PuTTY<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Create a saved profile in PuTTY for your remote server<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">In PuTTy, You can create saved sessions or profiles for different remote server connections so you don&#8217;t have to manually configure the connection setting every time.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Open PuTTy, and navigate to the Session Category. Configure the following:<\/p>\n<p><b>1. Host Name:<\/b>\u00a0IP address of your VPS or its fully qualified domai name.<br \/>\n<b>2. Port:<\/b>\u00a0The default port for SSH is 22. It&#8217;s recommended to change your server&#8217;s SSH port to reduce brute force attacks. In this example, we will use the default port 22.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/6d40f70ca1a6460eac15ca33b23457bf\/host_name.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\"><b>Connection Category, Data Sub-Category<\/b><br \/>\n<b>1. Auto-login username:<\/b>\u00a0Enter the usename you use to log in to the server. Here we use administrator.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/e4f4dcfc21cf4a2e93ae07a2c2cd3def\/auto_login_username.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Go back to the Session Category<br \/>\n<b>1. Saved Sessions:<\/b>\u00a0Specify a name for this session and click Save. The next time you open PuTTY, simply double click the session name, you can start the session immediately without having to input the above information again.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/1ce8e206e2664e5f83fc13e31cdff9b9\/save_sessions.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"how-to-generate-ssh-keys\" class=\"col col-md-10 d-h2 d-color-black core-title\">How to Generate SSH Keys<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Generate a public\/private SSH key pair<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Double-click the downloaded PuTTygen file &#8211; PuTTygen.exe. In the Parameters section, it&#8217;s okay to keep the default settings for the\u00a0<b>type of key to generate<\/b>\u00a0as\u00a0<b>RSA<\/b>. However, it is not recommended to use the SSH-1 (RSA) type as it is less secure. Then, specify the\u00a0<b>number of bits in a generated key<\/b>\u00a0as\u00a0<b>2048 or 4096<\/b>. Increasing the bits makes it harder to crack the key by brute-force methods. Finally, click the generate button.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/54b61d6f5b514615be4298d47e30b18b\/generate_putty_ssh_keys_1.png\" alt=\"Generate SSH keys\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Move the mouse cursor around below the progress bar until the progress bar is full.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/b8680e9b238047ff8b9b0bfdc72ac299\/generate_ssh_key_2.png\" alt=\"Move the mouse cursor around in the blank area to generate a public\/private SSH key pair.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Here you can see an SSH key pair has been generated.<br \/>\n<b>Key comment:<\/b>\u00a0You can input any comment, such as an email address and a specific name, to help you identify this key pair later. The comment is particular useful when you have generated multiple key pairs.<br \/>\n<b>Key passphrase and Confirm passphrase:<\/b>\u00a0If you want to add an additional layer of security on top of the SSH keys, you can enter a passphrase here. Otherwise, leave it blank. In this example, we use the SSH key without passphrase.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/55423a20dab948bf9866b8dd0da0cbcf\/generate_ssh_key_3.png\" alt=\"Verify screen installation on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Save Private Key<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Save the private key to your computer by clicking Save private key and specify a file name. The file should be ending with\u00a0<b>.ppk<\/b>. Please be sure to save it to a location that only you can access and that you will NOT lose! If you lose your keys and have disabled username\/password logins, you will no longer be able log in!<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/aedfe7093fa04c5eba433880aebc0684\/save_private_key.png\" alt=\"Save the private key\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Save Public Key<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Click Save public key and specify a file name that you can identify to save the public key to your computer.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/592b302fedee476e83e2c836061362b0\/save_public_keys.png\" alt=\"Save the public key\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"copy-the-public-key-to-the-remote-server\" class=\"col col-md-10 d-h2 d-color-black core-title\">Copy the Public Key to the Remote Server<\/h2>\n<div class=\"col col-md-10 d-color-black d-fs-normal d-fw-500\">Now, you need to log in to your server using username and password and paste the public key in the file ~\/.ssh\/authorized_keys.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Copy the Public Key from the PuTTYgen window<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/0d2008fb79764641a07300038e5e2790\/copy_public_key.png\" alt=\"Copy the public key\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Connect to the Server<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">open PuTTY, double-click the session name to start the saved session.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/431c86bbf4a24b8ab73d9b8e872ebb07\/login.png\" alt=\"Connect to Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Then, input the password for the auto-login user as prompted.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/431c86bbf4a24b8ab73d9b8e872ebb07\/login.png\" alt=\"Connect to Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Navigate to the ~\/.ssh folder and use the nano command to paste the copied public key to the authorized_keys file<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">cd \/home\/administrator\/.ssh\/\r\nnano authorized_keys<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/681930ff26b4479dbf5209fd8c9a6ba2\/navigate_to_ssh.png\" alt=\"Navigate to the ssh folder\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/3dc1ae378f20466da7bc9e4acd934f79\/paste_public_keys.png\" alt=\"Paste the public key\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Then, Press the Ctrl + x on your keyboard, and input y, followed by hitting Enter to save the changes.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\"><b>Note<\/b>\u00a0If the authorized_keys file doesn&#8217;t exist, you can manually create it.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"start-your-first-ssh-key-login\" class=\"col col-md-10 d-h2 d-color-black core-title\">Start Your First SSH Key Login<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Attach the Private Key to Your Saved Session<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Disconnect to your current session, and open PuTTy again. Click the saved session name and hit the Load button.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/6dca4abc68a6498cb9638c4361db803d\/load%20session.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Go to\u00a0<b>Connection &#8211; SSH &#8211; Auth<\/b>. Click Brower. Then, find the private key file you previously saved on your computer and click Open.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/1c39f1803a594b5a911aa69eed1aaef3\/private_key.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Go back to the\u00a0<b>Session Category<\/b><br \/>\nAt the Saved session, click Save. Now, you have attached your private key to your testserver saved session.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/1ce8e206e2664e5f83fc13e31cdff9b9\/save_sessions.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Start a Session with SSH Key<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Open PuTTy, select the saved session and click open. You can see you&#8217;ve automatically logged in without being required a password.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/818b02d7adf045b5a32079d6dd9315dd\/login_with_ssh_1.png\" alt=\"Log in with SSH key.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"disable-password-login\" class=\"col col-md-10 d-h2 d-color-black core-title\">Disable Password Login<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Once you have verified that your SSH key logins are working, you may disable username\/password logins to achieve better security. To do this, you need to edit your SSH server&#8217;s configuration file. On Debian \/ Ubuntu systems, this file is located at \/etc\/ssh\/sshd_config. In this example, we use the nano editor to make the changes by using the following command. Any other editor will work.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">sudo nano \/etc\/ssh\/sshd_config<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">In the file, change the value of\u00a0<b>PasswordAuthentication<\/b>\u00a0and\u00a0<b>UsePAM<\/b>\u00a0to\u00a0<b>no<\/b>. Then save the changes by pressing ctrl + x, followed by hitting y and enter.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/0a590902a86640dbaf56b5f09969fad9\/disable_password.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/fa4d62e73acd432eba5f39aaa85973af\/password.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<div class=\"d-text-start\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/ca6f5783f73348938b518db56826ef69\/UsePam.png\" alt=\"Install screen on Linux servers.\" width=\"1300\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"conclusion\" class=\"col col-md-10 d-h2 d-color-black core-title\">Conclusion<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">With this comprehensive guide, users can confidently connect to Ubuntu Linux systems with SSH keys using PuTTY from their Windows machines. This secure and efficient method of authentication ensures a seamless remote access experience while maintaining a high level of security for the user&#8217;s sensitive information.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<footer class=\"d-footer\">\n<div class=\"d-footer-bd\">\n<div class=\"container\">\n<div class=\"row align-items-stretch align-items-start\">\n<div class=\"col-sm-12 col-md-4 col-lg-4 col-xl-4 d-flex flex-column mb-5\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/footer>\n","protected":false},"excerpt":{"rendered":"<p>Introduction It is generally recommended to use SSH key authentication whenever possible, especially for servers or systems accessible over the internet. This is because SSH key authentication is based on asymmetric cryptography and is considered more secure than password authentication. It provides stronger protection against brute-force attacks, as the private key is typically much longer [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1605,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-hosting"],"_links":{"self":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/comments?post=1604"}],"version-history":[{"count":3,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1604\/revisions"}],"predecessor-version":[{"id":1608,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1604\/revisions\/1608"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/media\/1605"}],"wp:attachment":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/media?parent=1604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/categories?post=1604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/tags?post=1604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}