{"id":13370,"date":"2024-08-24T00:32:28","date_gmt":"2024-08-23T22:32:28","guid":{"rendered":"https:\/\/digi.hosting\/?post_type=docs&#038;p=13370"},"modified":"2025-01-09T20:37:58","modified_gmt":"2025-01-09T19:37:58","password":"","slug":"upload-via-ssh","status":"publish","type":"docs","link":"https:\/\/digi.hosting\/en\/support\/uploaden-via-ssh\/","title":{"rendered":"Uploading via SSH"},"content":{"rendered":"<p>SSH allows you to log in to the server and download files directly from other servers.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Notice:<\/strong>\u00a0Some hosts may disable the SSH feature for security reasons.<\/li>\n\n\n\n<li><strong>Notice:<\/strong>\u00a0SSH should not be used by people unfamiliar with a Unix environment.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"connect-to-the-server-with-terminal-using-openssh\">Connect to the server via terminal, using OpenSSH<\/h4>\n\n\n\n<p>Just open the terminal (Linux\/MacOS only) and type your username and server name. For example:<\/p>\n\n\n\n<p>ssh gebruiker@yourwebsite.com<\/p>\n\n\n\n<p>You will be asked to enter your password. Do this and press enter<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Notice:<\/strong>\u00a0You will not see the length of the password, which is not a big deal. Type the password and press Enter.<\/li>\n\n\n\n<li><strong>Remark:<\/strong>\u00a0the default ssh server port is\u00a0<strong>22.<\/strong>\u00a0If your server has a custom port set up, you must specify it when you connect through the ssh terminal. Example:<\/li>\n<\/ul>\n\n\n\n<p>ssh -p 2222 gebruiker@yourwebsite.com<\/p>\n\n\n\n<p>Where -p stands for port and&nbsp;<strong>2222<\/strong>&nbsp;is the port number of your server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"connect-to-the-server-with-putty\">Connect to the server with PuTTy<\/h4>\n\n\n\n<p>Download PuTTy\u00a0<a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/p>\n\n\n\n<p>Enter your host name and port (by default&nbsp;<strong>22<\/strong>&nbsp;)<img decoding=\"async\" src=\"https:\/\/evo.site-helper.com\/assets\/img\/ssh_connect1.c70db248.png\" alt=\"connect to ftp\"><\/p>\n\n\n\n<p>Press \"Open.\" You will proceed to the terminal, enter your username and password. Once connected, the steps below are the same as OpenSSH and PuTTy.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"change-to-the-directory-where-you-want-your-files-to-be-downloaded\">Go to the folder where you want to download your files<\/h4>\n\n\n\n<p>When you are connected, you will appear in your home directory. However, you may want to access your public_html directory, you can do that with&nbsp;<strong>the CD<\/strong>&nbsp;assignment. Example:<\/p>\n\n\n\n<p>cd \/home\/username\/domains\/yourwebsite.com\/public_html\/<\/p>\n\n\n\n<p>Where\u00a0<strong>user<\/strong>\u00a0is your username and\u00a0<strong>yourwebsite.com<\/strong>\u00a0your domain name. You can also open public_html by simply typing<\/p>\n\n\n\n<p>cd domains\/yourwebsite.com\/public_html\/<\/p>\n\n\n\n<p>Via ssh you log in to your home directory, but if you type the full path, you get&nbsp;<strong>always<\/strong>&nbsp;access to the appropriate folder.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"downloading-files\">Download files.<\/h4>\n\n\n\n<p>Now you can download files with&nbsp;<strong>the wget-<\/strong>&nbsp;command. Just type:<\/p>\n\n\n\n<p>wget https:\/\/www.yourwebsite.com\/filename.png<\/p>\n\n\n\n<p>You can also download from an FTP server using wget. To do this, simply type:<\/p>\n\n\n\n<p>wget ftp:\/\/username:password@ftp.yourwebsite.com\/filename.png<\/p>\n\n\n\n<p>wget offers much more flexibility and features. If you want to know more about it, you can visit\u00a0<a href=\"https:\/\/www.gnu.org\/software\/wget\/\" target=\"_blank\" rel=\"noreferrer noopener\">find more information here.<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"using-rsync-to-synchronize-files\">Using Rsync to synchronize files<\/h4>\n\n\n\n<p><strong>Warning:<\/strong>&nbsp;Using rsync may result in file deletion.&nbsp;<strong>Therefore, check carefully<\/strong>&nbsp;What you do before using rsync.<\/p>\n\n\n\n<p>rsync is a powerful tool for synchronizing files between servers, or simply uploading one from another server. Example of use:<\/p>\n\n\n\n<p>rsync -avt olduser@youroldwebsite.com:\/home\/olduser\/domains\/youroldwebsite.com\/public_html\/logo.png userr@yournewwebsite.com:\/home\/user\/domains\/yournewwebsite.com\/public_html\/<\/p>\n\n\n\n<p>Where:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>olduser is the user from whom you want to download the file logo.png<\/li>\n\n\n\n<li>youroldwebsite.com is the domain from which you want to download the file logo.png<\/li>\n\n\n\n<li>logo.png is a file from youroldwebsite.com that you want to transfer to yournewwebsite.com<\/li>\n\n\n\n<li>user is the user of the new server to which you want to download your file.<\/li>\n\n\n\n<li>yournewwebsite.com is the domain where you want to download your file.<\/li>\n\n\n\n<li>public_html is the folder where the logo.png file is downloaded.\u00a0<strong>Don't forget the \/ symbol at the end.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>rsync is a very powerful tool with many functions. If you want to know more about it, you can use&nbsp;<a href=\"https:\/\/linux.die.net\/man\/1\/rsync\" target=\"_blank\" rel=\"noreferrer noopener\">read here.<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Met SSH kunt u zich aanmelden bij de server en rechtstreeks bestanden van andere servers downloaden. Maak verbinding met de server via terminal, met behulp van OpenSSH Open gewoon de terminal (alleen Linux\/MacOS) en typ uw gebruikersnaam en servernaam. Bijvoorbeeld: ssh gebruiker@yourwebsite.com U wordt gevraagd uw wachtwoord in te voeren. Doe dit en druk op [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[70],"glossaries":[],"doc_tag":[],"knowledge_base":[75],"class_list":["post-13370","docs","type-docs","status-publish","hentry","doc_category-upload-je-website","knowledge_base-directadmin-webhosting"],"acf":[],"year_month":"2026-04","word_count":551,"total_views":"1457","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admindigihosting","author_nicename":"admindigihosting","author_url":"https:\/\/digi.hosting\/en\/author\/admindigihosting\/"},"doc_category_info":[{"term_name":"Upload je website","term_url":"https:\/\/digi.hosting\/en\/support\/directadmin-webhosting\/upload-je-website\/"}],"doc_tag_info":[],"knowledge_base_info":[{"term_name":"DirectAdmin Webhosting","term_url":"https:\/\/digi.hosting\/en\/support\/directadmin-webhosting\/","term_slug":"directadmin-webhosting"}],"knowledge_base_slug":["directadmin-webhosting"],"_links":{"self":[{"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/docs\/13370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/comments?post=13370"}],"version-history":[{"count":1,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/docs\/13370\/revisions"}],"predecessor-version":[{"id":13371,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/docs\/13370\/revisions\/13371"}],"wp:attachment":[{"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/media?parent=13370"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/doc_category?post=13370"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/glossaries?post=13370"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/doc_tag?post=13370"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/digi.hosting\/en\/wp-json\/wp\/v2\/knowledge_base?post=13370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}