{"id":404,"date":"2018-07-31T05:04:08","date_gmt":"2018-07-31T05:04:08","guid":{"rendered":"https:\/\/litextension.com\/faq\/docs\/general-questions\/how-to-access-your-account-using-ssh\/"},"modified":"2025-01-02T09:52:27","modified_gmt":"2025-01-02T09:52:27","slug":"how-to-access-your-account-using-ssh","status":"publish","type":"docs","link":"https:\/\/litextension.com\/faq\/docs\/migration-process\/migration-preparation\/how-to-access-your-account-using-ssh\/","title":{"rendered":"How to access your account using SSH?"},"content":{"rendered":"\n<p>If you are here, you are likely involved in a migration process\u2014whether preparing, troubleshooting, or finalizing\u2014and need to access your hosting account. This might include retrieving files, running commands, managing server settings, or transferring data securely. Below are the steps for accessing your account using SSH, tailored to your operating system:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>For Windows Operating Systems<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Windows 10<\/h3>\n\n\n\n<p>Recent updates of Windows 10 include the Windows Subsystem for Linux (WSL) which provides a convenient way to run Linux commands. Installation instructions for the WSL are available&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/install-win10\" target=\"_blank\" rel=\"noopener nofollow\">here<\/a>. Once the WSL is installed, you can connect to your account with SSH by following these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the Run dialog box by pressing the Windows key + R.<\/li>\n\n\n\n<li>In the Run dialog box type&nbsp;&#8220;<span class=\"user-input\">bash&#8221;<\/span><strong>&nbsp;<\/strong>and then click &#8220;OK&#8221; to start the bash shell.<\/li>\n\n\n\n<li>Type the following command at the command line. Replace&nbsp;username<strong>&nbsp;<\/strong>with your Hosting username, and replace&nbsp;<em>example.com<\/em>&nbsp;with your site&#8217;s domain name: <code>ssh -p username@example.com<\/code><\/li>\n\n\n\n<li>Type your password when you are prompted to do so and then press &#8220;Enter&#8221;.<\/li>\n\n\n\n<li>When the remote server&#8217;s command line prompt appears, you are connected. The initial command line prompt is: <code>username@example.com [~]#<\/code><\/li>\n\n\n\n<li>You can now run commands. For example, to see a listing of the current directory, type &#8220;Is&#8221;&nbsp;and then press &#8220;Enter&#8221; .<\/li>\n\n\n\n<li>To close the SSH connection when you are done, type&nbsp;<span class=\"user-input\">exit<\/span>&nbsp;and then press &#8220;Enter&#8221;.<\/li>\n\n\n\n<li>To close the bash shell, type&nbsp;<span class=\"user-input\">exit<\/span>&nbsp;and then press &#8220;Enter&#8221;.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Other Windows versions<\/h3>\n\n\n\n<p>Older versions of Microsoft Windows do not include an SSH client, so you must download an SSH client first. Hosting recommends PuTTY, a free program that you can&nbsp;<a href=\"http:\/\/the.earth.li\/~sgtatham\/putty\/latest\/x86\/putty.exe\" target=\"_blank\" rel=\"noopener nofollow\">download here<\/a>. After you have downloaded the PuTTY executable to your local computer, you can use it to connect to your Hosting account.<\/p>\n\n\n\n<p>To connect to your account using <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener\">PuTTY<\/a>, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener\">PuTTY<\/a>.<\/li>\n\n\n\n<li>In the&nbsp;<span class=\"textbox\">Host Name (or IP address)<\/span>&nbsp;text box, enter <span class=\"user-input\">username@example.com<\/span> and replace the details with your credentials.<\/li>\n\n\n\n<li>Confirm the Connection type is set to SSH, and enter the correct port (default is 22, but it may vary for your host).<\/li>\n\n\n\n<li>Click Open and accept the security alert if prompted.<\/li>\n\n\n\n<li>Enter your password and press &#8220;Enter&#8221;.<\/li>\n\n\n\n<li>When the remote server&#8217;s command line prompt appears, you are connected. The initial command line prompt is: <code>username@example.com [~]#<\/code><\/li>\n\n\n\n<li>You are now connected and can manage your server files. To exit, type exit and press &#8220;Enter&#8221;.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>For Mac OS X and Linux operating systems<\/strong><\/h2>\n\n\n\n<p>Both Mac OS X and Linux come with pre-installed SSH clients, making it straightforward to connect:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open a terminal window:\n<ul class=\"wp-block-list\">\n<li>On Mac OS X, navigate to Applications &gt; Utilities &gt; Terminal.<\/li>\n\n\n\n<li>On Linux, open the terminal from your desktop environment.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>At the command prompt, type the following command. Replace&nbsp;username&nbsp;with your Hosting username, and&nbsp;<em>example.com<\/em>&nbsp;with your site&#8217;s domain name: <code>ssh -p username@example.com<\/code><\/li>\n\n\n\n<li>Enter your password when prompted and press &#8220;Enter&#8221;.<\/li>\n\n\n\n<li>When the prompt <code>username@example.com [~]#<\/code> appears, you are connected. Use commands like &#8220;ls&#8221; to manage directories or execute migration-related tasks.<\/li>\n\n\n\n<li>You can now run commands. For example, to see a listing of the current directory, type&nbsp;<span class=\"user-input\">ls<\/span>&nbsp;and then press &#8220;Enter&#8221;.<\/li>\n\n\n\n<li>To close the SSH connection when you are done, type&nbsp;<span class=\"user-input\">exit<\/span>&nbsp;and then press &#8220;Enter&#8221;.<\/li>\n<\/ol>\n\n\n\n<p><strong>Optional Configuration:<\/strong><\/p>\n\n\n\n<p>To simplify future SSH connections, create an SSH configuration file (<code>~\/.ssh\/config<\/code>) with the following details:<\/p>\n\n\n\n<p><code>Host example<\/code><br><code>Hostname example.com<br>Port [port]<br>User username<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Host&nbsp;value can be any name you want; it is simply a label for the other settings.<\/li>\n\n\n\n<li>Hostname&nbsp;value is the remote host you want to access. <\/li>\n\n\n\n<li>Port: The default port for SSH is 22. However, Hosting uses a different port for security reasons.<\/li>\n\n\n\n<li>User&nbsp;value specifies your Hosting account username.<\/li>\n<\/ul>\n\n\n\n<p>By mastering SSH access, you\u2019ll be fully equipped to handle essential tasks during migration, ensuring a secure and efficient transfer of your eCommerce data. For further assistance, feel free to reach out!<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/litextension.zendesk.com\/hc\/en-us\/signin?return_to=https%3A%2F%2Flitextension.zendesk.com%2Fhc%2Fen-us%2Frequests\" target=\"_blank\" rel=\"noopener\">Ticket system<\/a> (highly recommended)<\/li>\n\n\n\n<li>Email us at <a href=\"mailto:contact@litextension.com\" target=\"_blank\" rel=\"noopener\">contact@litextension.com<\/a><\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"parent":6184,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_tag":[1360,1249,1359],"class_list":["post-404","docs","type-docs","status-publish","hentry","doc_tag-access-account","doc_tag-ftp","doc_tag-ssh"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":36,"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs\/404\/revisions"}],"predecessor-version":[{"id":7131,"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs\/404\/revisions\/7131"}],"up":[{"embeddable":true,"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs\/6184"}],"next":[{"title":"How do I know if my store has custom fields or not?","link":"https:\/\/litextension.com\/faq\/docs\/migration-process\/migration-preparation\/how-to-check-custom-fields\/","href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs\/1648"}],"prev":[{"title":"How to create an FTP account in cPanel?","link":"https:\/\/litextension.com\/faq\/docs\/migration-process\/migration-preparation\/how-to-create-an-ftp-account-in-cpanel\/","href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/docs\/291"}],"wp:attachment":[{"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/litextension.com\/faq\/wp-json\/wp\/v2\/doc_tag?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}