{"id":10810,"date":"2023-12-30T04:50:00","date_gmt":"2023-12-29T23:20:00","guid":{"rendered":"https:\/\/www.wpoven.com\/blog\/?p=10810"},"modified":"2024-08-16T10:40:39","modified_gmt":"2024-08-16T05:10:39","slug":"how-to-use-ssh","status":"publish","type":"post","link":"https:\/\/www.wpoven.com\/blog\/how-to-use-ssh\/","title":{"rendered":"How To Use SSH To Connect To Your Server Securely [Guide]"},"content":{"rendered":"\n<p class=\"justify\">How to use ssh is something that is not expected from any regular WordPress user. They prefer to access their website either through the WordPress dashboard or using FTP clients like Filezilla. But many of the users are unaware of the fact that apart from these regular methods, there is also a more secure and fast method available through which a user can access their website server more securely.<\/p>\n\n\n\n<p class=\"justify\">Hence, it can be one of the best and most valuable alternatives to accessing WordPress files from the server. Especially, if you want to boost up your work, you will find learning how to use SSH can be a worthy and efficient method to connect.<\/p>\n\n\n\n<p class=\"justify\">In this article, You will get to know How to use SSH in detail, but before that, you must clear some basic points about SSH. Let&#8217;s begin.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group tip is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h2 class=\"wp-block-heading myh2\" id=\"what-is-ssh\">What is SSH?<\/h2>\n\n\n\n<p class=\"justify\">SSH or Secure Shell is defined as a set of rules or protocols that is used to remotely access through secure login with other secure network services over an unprotected or insecure network. It means, through this protocol, you will be able to remotely access your WordPress website using valid login credentials from any device, no matter where your website has been hosted. The plus point of using this method is its security.<\/p>\n\n\n\n<p class=\"justify\">SSH provides you protected path through which you can log in to your website securely and become carefree from being the risk of unauthorized access while using it. In addition to this, it is way faster and easier to use than any other method. <\/p>\n\n\n\n<p class=\"justify\">However, any user who likes to connect to their website server mainly requires two things:<\/p>\n\n\n\n<ul>\n<li>Login Credentials <\/li>\n\n\n\n<li>Interface<\/li>\n<\/ul>\n\n\n\n<p class=\"justify\">For Windows users, you need to download and install an SSH client, but if you are running Linux or macOS you are not required to install any SSH client, an SSH interface has been built into these operating systems.<\/p>\n\n\n\n<p class=\"justify\">If you\u2019re running Linux or macOS, you have an interface built into your operating system, so you don\u2019t need to install an SSH client. But if you\u2019re running Windows, you\u2019ll need to install a client. I\u2019ll show you how to do that in this post. Let me show you what tools you will require to connect to your website through SSH.<\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/app.wpoven.com\/users\/signup\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"277\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/fastest-WordPress-Hosting.png\" alt=\"WPOven\" class=\"wp-image-26869\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/fastest-WordPress-Hosting.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/fastest-WordPress-Hosting-300x81.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/fastest-WordPress-Hosting-768x208.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><\/a><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div class=\"wp-block-group box is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h2 class=\"wp-block-heading myh2\" id=\"tools-you-need-to-connect-to-your-site-via-ssh\">What Tools Do You Require To Connect To Your Website Through SSH?<\/h2>\n\n\n\n<p class=\"justify\">To begin with the process of How to use SSH?,  the first thing you need to use is a terminal (especially for macOS and Linux) or an SSH client for the Windows operating system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to use SSH, Using Terminal to connect your website on Linux or macOS<\/h3>\n\n\n\n<p class=\"justify\">The terminal is an SSH application that comes with Linux or macOS operating systems. Through it, you will be able to send commands to your machine or a remote server using the command line. You may find it difficult at first due to its interface because you won&#8217;t be able to see any such representation on the screen. But when you learn it, it becomes handy and quicker for you.<\/p>\n\n\n\n<p class=\"justify\">The user interface is somewhat similar to Microsoft&#8217;s Disk Operating system in the early days. If you had used that, then you don&#8217;t find the terminal interface even more difficult. In addition to it, Terminal has a lot more options than MS-DOS has.<\/p>\n\n\n\n<p class=\"justify\">To locate and open Terminal on Mac OS, the first thing you need to do is to Open your Spotlight and Type in Terminal. However, you can also locate it by going to your Applications section and clicking on Utilities.<\/p>\n\n\n\n<p class=\"justify\">In Linux, You can directly open the terminal by directly pressing this shortcut key <strong>[ctrl+alt+T]<\/strong> or you can search it by&nbsp;clicking the \u201cDash\u201d icon, and typing in \u201cterminal\u201d in the search box.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"connecting-via-an-ssh-client-on-windows\">How to use SSH using SSH Client to connect your website on Windows<\/h3>\n\n\n\n<p class=\"justify\">In Windows, first, you will need to install an SSH client through which you can only be able to connect to your website server. The best and widely used SSH client is PuTTY, you need to first download it and then install it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"204\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_8-1-1024x204.png\" alt=\"How to use ssh using Putty\" class=\"wp-image-10815\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_8-1-1024x204.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_8-1-300x60.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_8-1-768x153.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_8-1-1536x306.png 1536w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_8-1.png 1818w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSh: Download Putty<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-2 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:16px\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" style=\"border-radius:5px\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">Download Now<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-the-putty-ssh-client-on-windows\">How to use ssh client Putty on Windows?<\/h4>\n\n\n\n<p class=\"justify\">As I have already mentioned above, the first thing you need to do is to download and install the Putty SSH client from the above download link provided.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_9-1-1024x475.png\" alt=\"PuTTY download Page\" class=\"wp-image-10816\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_9-1-1024x475.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_9-1-300x139.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_9-1-768x356.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_9-1-1536x712.png 1536w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_9-1.png 1873w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: Download Putty<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\">Now from the above image, you can choose the right package that is compatible with your version of Windows. If you are not aware of your Windows Version, you can check it out in your Windows Settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_10-1-1024x553.png\" alt=\"Windows Settings page\" class=\"wp-image-10821\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_10-1-1024x553.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_10-1-300x162.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_10-1-768x415.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_10-1-1536x830.png 1536w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_10-1.png 1890w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: PC specifications<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\">Once you can figure out which Windows version you have installed on your PC, choose the package accordingly.<\/p>\n\n\n\n<p class=\"justify\">Under the MSI section, you can now click on one of the links that match your Windows version, and the file will immediately download to your PC. Once downloaded, install the application.<\/p>\n\n\n\n<p class=\"justify\">After successfully downloading and installing the PuTTY SSH client, run the application and use it to connect to your website.<\/p>\n<\/div><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpoven.com\/dedicated-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"137\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-1024x137.png\" alt=\"WPOven Dedicated Hosting\" class=\"wp-image-25538\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-1024x137.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-300x40.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-768x102.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting-1536x205.png 1536w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/wpoven-dedicated-hosting.png 1919w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><\/a><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div class=\"wp-block-group box is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h2 class=\"wp-block-heading myh2\">How To Use SSH Connecting Your Server Using Command Line<\/h2>\n\n\n\n<p class=\"justify\">Now when you have successfully installed SSH client on your Windows machine or configured terminal SSH in your macOS or Linux. It is time to connect to your remote site. To connect either of these ssh clients, you have to use the command line, which is used to send commands over to your server.<\/p>\n\n\n\n<p class=\"justify\">But to make this possible, you will need some vital information such as:<\/p>\n\n\n\n<ul>\n<li>Your Server Address<\/li>\n\n\n\n<li>Your Username<\/li>\n\n\n\n<li>Password <\/li>\n\n\n\n<li>Port<\/li>\n<\/ul>\n\n\n\n<p class=\"justify\">Now you do not have a different server address required, it is usually your either domain name or the IP address. The username and password will be your FTP credentials. Whereas the port will be provided by your web hosting service provider. But generally, the port is taken as the default port.<\/p>\n\n\n\n<p class=\"justify\">In WPOven, You can access your site via an SSH command-line console by following these steps :<br>Step 1: You first need to enable SSH access for the site. To do this you need to access the site from the WPOven dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard.png\" alt=\"How to use SSH: WPOven enabling SSH\" class=\"wp-image-25489\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard-300x138.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard-768x353.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: WPOven enabling SSH<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Navigate to the&nbsp;<strong>&#8216;Tools&#8217;<\/strong>&nbsp;section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/Navigate-to-Tools-WPOven-Dashboard.png\" alt=\"How to use SSH: WPOven enabling SSH\" class=\"wp-image-25490\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/Navigate-to-Tools-WPOven-Dashboard.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/Navigate-to-Tools-WPOven-Dashboard-300x138.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/Navigate-to-Tools-WPOven-Dashboard-768x353.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: WPoven Tools <\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\">Then from the&nbsp;<strong>&#8216;Tools&#8217;<\/strong>&nbsp;section, you need to press the&nbsp;<strong>&#8216;Enable SSH access&#8217;<\/strong>&nbsp;button at the bottom of the page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/enable-SSH-WPOven-Dashboard.png\" alt=\"How to use SSH: WPOven enabling SSH\" class=\"wp-image-25491\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/enable-SSH-WPOven-Dashboard.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/enable-SSH-WPOven-Dashboard-300x138.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/enable-SSH-WPOven-Dashboard-768x353.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: Enable SSH access<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\"><strong>Step 2<\/strong>: Once the SSH access is enabled for the site, you can then log in via 3rd party applications like&nbsp;<strong>Putty<\/strong>&nbsp;or&nbsp;<strong>PenguiNet<\/strong>&nbsp;using your site&#8217;s SFTP login credentials<\/p>\n\n\n\n<p class=\"justify\">To find out what your site&#8217;s SFTP login credentials are in WPoven:<br><strong><u>Step 1<\/u><\/strong>: Open the \u201c<strong>Sites<\/strong>\u201d tab and choose the Site you want to know the details of.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard.png\" alt=\"How to use SSH: WPOven enabling SSH\" class=\"wp-image-25489\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard-300x138.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-site-WPOven-Dashboard-768x353.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: WPOven enabling SSH<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\"><strong><u>Step 2<\/u><\/strong>: Click on the \u201c<strong>Advanced<\/strong>\u201d sub-tab, enter your WPoven login password, and click the \u201c<strong>Show Site SFTP Details<\/strong>\u201d button.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-advanced-tab.png\" alt=\"How to use SSH: WPOven enabling SSH\" class=\"wp-image-25492\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-advanced-tab.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-advanced-tab-300x138.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/select-advanced-tab-768x353.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: WPOven enabling SSH<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\"><strong><u>Step 3<\/u><\/strong>: After entering the password you will see all the required details you require to gain SFTP access to the site.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/SFTP-details.png\" alt=\"How to use SSH: WPOven enabling SSH\" class=\"wp-image-25493\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/SFTP-details.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/SFTP-details-300x138.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/03\/SFTP-details-768x353.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: WPOven enabling SSH<\/sup><\/em><\/figcaption><\/figure>\n<\/div><\/div>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/app.wpoven.com\/users\/signup\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"277\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/WPOven-Moneyback-guarantee.png\" alt=\"WPOven\" class=\"wp-image-26938\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/WPOven-Moneyback-guarantee.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/WPOven-Moneyback-guarantee-300x81.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2024\/07\/WPOven-Moneyback-guarantee-768x208.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><\/a><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-use-ssh-to-interact-with-your-site\">Interacting with your website using SSH<\/h2>\n\n\n\n<p class=\"justify\">Now when everything is set up, it is time to connect your SSH client with the remote server. For your information, numerous SSH commands can be used and all of them are mentioned in <strong>WP-CLI( WordPress Command Line Interface).<\/strong><\/p>\n\n\n\n<p class=\"justify\">One thing you must note is that you must be careful and take all necessary precautions while connecting your website via SSH, and do not disclose your login credentials to anyone else. It is because, SSH is a very powerful tool that even a slight mistake can lead to your website damage, and can also delete files even with a wrong command.<\/p>\n\n\n\n<p class=\"justify\">All images, posts, and content on your website can be deleted and lost with just a single command. The only thing you can do as a precautionary measure is to always keep a backup of your website and be cautious while using it. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"basic-ssh-commands\">How to use SSH using Some important and Basic SSH commands?<\/h3>\n\n\n\n<p class=\"justify\">Since, I have already mentioned in the above section that SSH comes with numerous commands, with the help of which you can interact with your server.<\/p>\n\n\n\n<p class=\"justify\">When you are successfully able to get access to your server using the command line, now everything will be the same, just use Terminal to interact.<\/p>\n\n\n\n<p class=\"justify\">Check out some of the most basic and useful SSH commands you must look at. Get familiar with how to use SSH using the following commands:<\/p>\n\n\n\n<ul class=\"justify\">\n<li>To change directories use the &#8220;cd&#8221; command.<\/li>\n\n\n\n<li>To get a complete list of files and directories in your present location use the &#8220;1s&#8221; command.<\/li>\n\n\n\n<li>To copy files and folders using the &#8220;cp&#8221; command.<\/li>\n\n\n\n<li>To add a new file in a new directory use the &#8220;touch&#8221; command.<\/li>\n\n\n\n<li>To display the contents of a file using the &#8220;cat&#8221; command.<\/li>\n\n\n\n<li>To move or copay a file from one destination to another use the &#8220;mv&#8221; command.<\/li>\n\n\n\n<li>To remove a file or folder use the &#8220;rm&#8221; command.<\/li>\n\n\n\n<li>To create a new directory use the &#8220;<strong>mkdir<\/strong>&#8221; command.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"cd\">1. The &#8220;cd&#8221; Command<\/h4>\n\n\n\n<p class=\"justify\">The cd command is used to change the directions across the directories. You can move to the location of the directory and the command line will show your location. After that, you can also figure out easily what is present in the new directory by using simply the 1s command line.<\/p>\n\n\n\n<p class=\"justify\">Using the cd command line you can move either down the directory or move up, All you need to add dots, for example, if you like to move up the directories, add two dots after cd.<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>cd ..<\/strong><\/code><\/p>\n\n\n\n<p class=\"justify\">Even, you can also go directly to the specific directory location by adding the location after cd.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"ls\">2. The 1s Command<\/h4>\n\n\n\n<p class=\"justify\">This 1s Command is used to get all the detailed information of a particular directory or the directories in which you are present. You can also add more to the command to get in-depth information about that particular directory. Such as:<\/p>\n\n\n\n<ul class=\"justify\">\n<li>When you add the <strong>-a <\/strong>command along with the 1s command line, it will show all the hidden files and directories of that particular location.<\/li>\n\n\n\n<li>When you add the -1 command along with the 1s command line, it will display all the details of the files such as size, permissions, date and time of modification, and the owner name.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"cp\">3. The cp Command<\/h4>\n\n\n\n<p class=\"justify\">From the name itself, you can anticipate the cp command is used for copying files and folders. To make this happen, all you need to do is to add the name of the file or folder along with the name of the location, where you want to copy a file or folder.<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>cp [options] [source] [destination]<\/strong><\/code><\/p>\n\n\n\n<p class=\"justify\">From the above code, you can see, that you can also add options at the beginning of the command line, however, it is not mandatory to mention them. In addition, you must not add a name to the destination file or else, if you do so, and if there is a file already present with the same name at the destination, then it will be overwritten with the new one.<\/p>\n\n\n\n<p class=\"justify\">On the other hand, if you do not mention the file name in the destination and if the destination is already occupied with a file, then it will show you an error message and a copy will not happen<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"touch\">4. The touch Command<\/h4>\n\n\n\n<p class=\"justify\">The touch command lets you add a new file when you create a new directory.<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>touch style.css<\/strong><\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"cat\">5. The cat Command<\/h4>\n\n\n\n<p class=\"justify\">The cat command is used to display all the contents of a file in Linux.<\/p>\n\n\n\n<p>Input:<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>cat testfile.txt<\/strong><\/code><\/p>\n\n\n\n<p>Output:<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>Displays the content of testfile<\/strong><\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"mv\">6. The MV Command<\/h4>\n\n\n\n<p class=\"justify\">If you do not want to copy the file instead of moving it from one location to another, then the mv command will help you out. To do this, you need to provide the source and destination location without any options.<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>mv \/themes\/theme1\/header.php \/themes\/theme2\/<\/strong><\/code><\/p>\n\n\n\n<p class=\"justify\">Unlike the copy command, the mv command will delete the header.php file from theme1 and move it to theme2. If you want to move folders instead of files, the mv command will always move the files in the folder as well.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"rm\">7. The rm Command<\/h4>\n\n\n\n<p class=\"justify\">The <strong>rm<\/strong> command or remove command is used to remove a file or folder from the directory. You must be careful while using this command, it is because this process is irreversible.<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>rm style.css<\/strong><\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"mkdir\">8. The mkdir Command<\/h4>\n\n\n\n<p class=\"justify\">To create a new directory, you can use the mkdir command. For example, if you are located in the themes directory, you can make a new directory in it.<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code><strong>mkdir mytheme<\/strong><\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-wpcli-to-interact-with-your-site\">YOU can also use the WP-CLI interface to connect<\/h3>\n\n\n\n<p class=\"justify\">You can also use the <strong>WP-CLI <\/strong>interface which has more commands than typical SSH commands. It has options to interact with folders and files, database, and admin options too.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<p class=\"has-text-align-left round has-background\" style=\"background-color:#daf2ff\"><strong>Read:<\/strong>   \ud83d\udea9 For more information about WP-CLI, you can go through<br>                  &#8220;<a href=\"https:\/\/www.wpoven.com\/blog\/the-complete-guide-to-master-wp-cli-wp-cli-install-commands\/\" target=\"_blank\" rel=\"noreferrer noopener\">The complete guide to master WP CLI<\/a>&#8220;.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">What to do if SSH does not work as expected?<\/h2>\n\n\n\n<p class=\"justify\">In some cases, you might face some issues with SSH. You might face some errors or some commands will not work as they should. If that happens to you, you must try the following tricks to resolve issues.<\/p>\n\n\n\n<p><strong>Unable to establish a connection with SSH<\/strong> <\/p>\n\n\n\n<p class=\"justify\"> If you are unable to connect with your server and whenever you try an error message prompts on your screen. Either the prompt message will ask you yes or no or you must check if is there any syntax error. If still, it still doesn&#8217;t work, you must check out the username and password if they are correct or not.<\/p>\n\n\n\n<p class=\"justify\">If still the error persists, the next thing you can try to reset your SSH credentials. Check if your firewall is blocking you from accessing your server and whether your internet connection is good or not. If things are not still working, you can even restart your SSH client.<\/p>\n\n\n\n<p class=\"justify\">You must also go to your web hosting account and see if any server issues are restricting you from getting access. However, if your network is public, you may be not allowed to gain SSH access through the port. You have to use the trial and error method to determine which port allows you and which does not.<\/p>\n\n\n\n<p class=\"justify\">At last, doing all the efforts still, you are unable to connect with SSH, the only last thing you can do is to contact your hosting service provider and ask them to resolve this issue as soon as possible.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"if-your-ssh-commands-dont-work-as-they-should\">SSH commands are not working<\/h3>\n\n\n\n<p class=\"justify\">What if your SSH commands are not working or behaving the way they should? This can happen mainly due to syntax error or you enter the command wrongly.<\/p>\n\n\n\n<p class=\"justify\">In some cases, you might be entering the correct syntax or command but still, you get an error message. This can be due to, you providing the wrong parameters. In this scenario, you must check out your SSH as well as WP-CLI documentation.<\/p>\n\n\n\n<p class=\"justify\">However, the best part about the command line is, that it will provide you with information about what things are working and whatnot. for example, if SSH commands are not working due to a connection issue, the command line will display an error message telling the same. It will give you more detailed information about the same.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-generate-a-new-ssh-key-pair-for-extra-security\">Add an extra layer of protection to the SSH connection<\/h2>\n\n\n\n<p class=\"justify\">You can also provide an extra layer of protection or security key by Generating an SSH key pair. Unlike your regular Username and password, that you use to connect to SSH, the security key is required to connect your server through a Terminal or SSH client.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large imgsha round\"><img decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_1-1024x486.png\" alt=\"Generate SSH key\" class=\"wp-image-10828\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_1-1024x486.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_1-300x142.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_1-768x365.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_1-1536x729.png 1536w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2021\/10\/Screenshot_1.png 1771w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>How to use SSH: Generating SSH key pair Online<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-5 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:15px\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.wpoven.com\/tools\/create-ssh-key\" style=\"border-radius:5px\" target=\"_blank\" rel=\"noreferrer noopener\">Generate SSH Key<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Steps to Generate SSH key pair:<\/strong><\/p>\n\n\n\n<ul class=\"justify\">\n<li>With <a href=\"https:\/\/app.wpoven.com\/users\/signup\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/app.wpoven.com\/users\/signup\" rel=\"noreferrer noopener\">WPOven<\/a>, you can generate a key very easily, go to the link provided put in your password, and click on the &#8220;<a href=\"https:\/\/www.wpoven.com\/tools\/create-ssh-key\" target=\"_blank\" rel=\"noreferrer noopener\">Create key button<\/a>&#8220;.<\/li>\n\n\n\n<li>Now add the key to your Web hosting service account.<\/li>\n\n\n\n<li>Connect to your server in Terminal or your SSH client using the key pair.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"summary\">Summary<\/h2>\n\n\n\n<p class=\"justify\">This detailed article on How to use SSH will provide all the information regarding using SSH to connect to your server. Now you will be no longer dependent on your regular WordPress admin page and FTP client.<\/p>\n\n\n\n<p class=\"justify\">Following all the steps and reading detailed information on How to use SSH, will help you to explore more things other than the common things that you used to Till now.<\/p>\n\n\n\n<p class=\"justify\">Now, you must try out this method and let us know Which one you would prefer. Please let us know in the comment section below, we love to hear from you.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions on How to Use SSH?<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block justify\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1633932452800\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>What is SSH and how do you use it?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>SSH or Secure Shell is defined as a set of rules or protocols that is used to remotely access through secure login with other secure network services over an unprotected or insecure network. It means, through this protocol, you will be able to remotely access your WordPress website using valid login credentials from any device, no matter where your website has been hosted. The plus point of using this method is its security.<br \/>SSH provides you protected path through which you can log in to your website securely and become carefree from being the risk of unauthorized access while using it. In addition to this, it is way faster and easier to use than any other method.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1633933158461\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>How do I use SSH?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>If you are a Windows user, you can use SSh to connect your website via SSH client Putty or if you are a Linux user, you need to use Terminal.<br \/>Step 1: Open the Terminal Interface on your Computer.<br \/>Step 2: Type in the following command &#8220;ssh your_username@host_ip_address&#8221;.<br \/>Step 3: Provide or Type your password And hit Enter<br \/>Step 4: For the new connection, the client will ask if you want to continue connecting.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1633933492825\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>What is SSH command?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>SSH commands are a list of instructions that use the SSH client to respond as per the given instruction.  These commands provide a secure and protected connection between two hosts on any network. The connection can be used either to transfer, read, write, or remove files from the server. Some common SSH commands are:<br \/>To change directories use the &#8220;cd&#8221; command.<br \/>To get a complete list of files and directories in your present location use the &#8220;1s&#8221; command.<br \/>To copy files and folders using the &#8220;cp&#8221; command.<br \/>To add a new file in a new directory use the &#8220;touch&#8221; command.<br \/>To display the contents of a file using the &#8220;cat&#8221; command.<br \/>To move or copay a file from one destination to another use the &#8220;mv&#8221; command.<br \/>To remove a file or folder use the &#8220;rm&#8221; command.<br \/>To create a new directory use the &#8220;<strong>mkdir<\/strong>&#8221; command.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_13ee018b-8004-4a6d-935b-2ae8e0654de8\"><hr class=\"ub_divider\" ><\/hr><\/div>","protected":false},"excerpt":{"rendered":"<p>How to use ssh is something that is not expected from any regular WordPress user. They prefer to access their website either through the WordPress dashboard or using FTP clients like Filezilla. But many of the users are unaware of the fact that apart from these regular methods, there is also a more secure and fast method available through which a user can access their website server more securely.<\/p>\n<p>Hence, it can be one of the best and most valuable alternatives to accessing WordPress files from the server. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.wpoven.com\/blog\/how-to-use-ssh\/\" class=\"more-link\">Read More <i class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/i><span class=\"screen-reader-text\"> &#8220;How To Use SSH To Connect To Your Server Securely [Guide]&#8221;<\/span><\/a><\/p>\n","protected":false},"author":28,"featured_media":25475,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[1],"acf":[],"featured_image_src":"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2023\/12\/How-To-Use-SSH.png","author_info":{"display_name":"Rahul","author_link":"https:\/\/www.wpoven.com\/blog\/author\/rahul\/"},"_links":{"self":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/10810"}],"collection":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/comments?post=10810"}],"version-history":[{"count":2,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/10810\/revisions"}],"predecessor-version":[{"id":27266,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/10810\/revisions\/27266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/media\/25475"}],"wp:attachment":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/media?parent=10810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/categories?post=10810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}