{"id":474,"date":"2023-07-22T08:11:53","date_gmt":"2023-07-22T08:11:53","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=474"},"modified":"2025-01-15T11:47:25","modified_gmt":"2025-01-15T11:47:25","slug":"sftp-transfer-files-remote-server","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/sftp-transfer-files-remote-server\/","title":{"rendered":"How To Use SFTP to Securely Transfer Files"},"content":{"rendered":"<p>SFTP is a secure, encrypted way to transfer data from a local computer to a remote server. It provides a secure alternative to FTP. It keeps private data safe while transferring files. SFTP is now popular for secure file exchange. It is widely used and has strong security. To <a href=\"https:\/\/www.dedicatedcore.com\/blog\/install-ftp-server-ubuntu-vsftpd\/\" target=\"_blank\" rel=\"noopener\">securely transfer files<\/a> over a network, use VSFTPD. It&#8217;s a secure FTP server. Also, learn how to install an FTP server on Ubuntu.<\/p>\n<p>In today&#8217;s digital world, secure file transfers are vital. They protect sensitive data from unauthorized access and breaches. SFTP (Secure File Transfer Protocol) is a reliable way to exchange files. It securely transfers files between a local machine and a remote server.<\/p>\n<p>SFTP provides a safe channel for information exchange. It guarantees data integrity and encrypts the data in transit. This manual will explain, step by step, how to safely transfer files using SFTP. It will give readers the knowledge to protect their data during file transfers.<\/p>\n<h3>How to Set Up SFTP Connection<\/h3>\n<p>By default, SFTP establishes a secure connection and performs authentication using the SSH protocol. As a result, SSH-compatible authentication techniques are also available. Although passwords can be used to authenticate by default, we advise creating SSH keys and sending your public key to any systems you need to access.<\/p>\n<p>This is a lot more time-efficient and secure option. SFTP uses the SSH network protocol to create secure connections between systems. As long as a system has a copy of your public SSH key, you can connect to it using this method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sftp [username]@[remote hostname or IP address]<\/pre>\n<p>In the example below, we are using the dedicatedcore username to access a device with the IP address 192.168.100.5:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sftp dedicatedcore@192.168.100.5<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-475\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp.png\" alt=\"connecting a remote-server-using sftp command\" width=\"800\" height=\"147\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp-300x55.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp-768x141.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp-100x18.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/connect-remote-server-sftp-700x129.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>If you want to end the present connection, As below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">exit<\/pre>\n<h3>How to Send Files Through SFTP<\/h3>\n<p>You can move files from a distant server to a local system using SFTP and vice versa.<\/p>\n<h4>1. Send Files from a Remote Computer to a Local One<\/h4>\n<p>To transfer a file from a distant server to your local system, use the get command in the SFTP interface:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get [path to file]<\/pre>\n<p>Use these steps, for instance, to move a file named example_document.txt from the Home directory of the distant system to the local one:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get example_document.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-476\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system.png\" alt=\"get command to transfer remote files to local system\" width=\"800\" height=\"148\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system-768x142.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-files-remote-server-local-system-700x130.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>SFTP transmits files by default to the Home directory on the local machine. Put the directory&#8217;s path at the end of the get command to move files to a different location:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get example_document.txt Downloads<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-477\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory.png\" alt=\"transferring a file from local server to specific directory\" width=\"800\" height=\"148\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory-768x142.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-specific-directory-700x130.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Add the new file name to the end of the get command to modify the filename on the local system.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get example_document.txt sample01.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-478\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command.png\" alt=\"command to change filename in local system\" width=\"800\" height=\"148\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command-768x142.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/change-filename-local-system-get-command-700x130.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>In the aforementioned illustration, the get command downloads the example_document.txt file and saves it locally as sample01.txt.<\/p>\n<p>By specifying a recursive transfer of all files in the directory with the -r flag, SFTP also enables the transfer of a whole directory from the remote system:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get -r Example_Directory<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-479\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system.png\" alt=\"command to transfer directory from remote server to local system\" width=\"800\" height=\"168\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system-300x63.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system-768x161.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system-100x21.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transferring-directory-remote-server-local-system-700x147.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>To transfer the file or directory while maintaining permissions and access times, add the -P parameter to the get command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get -Pr Example_Directory<\/pre>\n<p>To confirm the transfer to the local system, run the ls command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ls -l<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-480\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system.png\" alt=\"verifying that files were transferred to local system\" width=\"800\" height=\"370\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system-300x139.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system-150x69.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system-768x355.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system-100x46.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-verify-files-transferred-local-system-700x324.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h4>2. Moving Local Files to a Remote Server<\/h4>\n<p>Use the put command to move files from a local system to a distant server. The syntax and available arguments for the put command are identical to those for forget.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">put [path to file]<\/pre>\n<p>Use this example to send the file example01.txt to the distant server:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">put example01.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-481\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server.png\" alt=\"transferring file from local system to remote server\" width=\"800\" height=\"170\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server-300x64.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server-768x163.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server-100x21.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-command-copy-transfer-local-system-remote-server-700x149.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Add the path to the directory to the end of the put command to move the file to a specific location on the remote server.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">put example01.txt Example_Directory<\/pre>\n<p><strong> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-482\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory.png\" alt=\"transferring file from local system to specific directory\" width=\"800\" height=\"190\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory-300x71.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory-150x36.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory-768x182.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-file-local-server-particular-directory-700x166.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The name of the transferred file on the remote computer is altered by appending a new filename to the end of the put command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">put example01.txt text_sample.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-483\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename.png\" alt=\"transferring a file from local system to remote server\" width=\"800\" height=\"170\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename-300x64.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename-150x32.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename-768x163.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename-100x21.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/transfer-copy-local-remote-server-change-filename-700x149.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>The -r parameter is required to move a whole directory.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">put -r Test_Directory<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-484\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server.png\" alt=\"command to transfer directory from local system to remote server\" width=\"800\" height=\"229\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server-300x86.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server-150x43.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server-768x220.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server-100x29.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-transfer-entire-directory-local-system-remote-server-700x200.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>For the put command to maintain file permissions, add the -P flag:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">put -Pr Test_Directory<\/pre>\n<p>Using the ls command on the remote system, confirm the file transfer:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1747\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1.png\" alt=\"command to transfer and copy local to remote\" width=\"800\" height=\"410\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1-300x154.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1-150x77.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1-768x394.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1-100x51.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/verify-files-transferred-remote-server-1-700x359.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h4>Maintaining files via SFTP<\/h4>\n<p>To modify the permissions of files and directories on a remote system, for example, you can use SFTP.<\/p>\n<p>In a similar manner to chmod, the chown command changes the ownership of a file:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">chown [user ID] [path to file]<\/pre>\n<p>The chown command accepts only user IDs, not usernames, unlike the chmod command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get \/etc\/passwd<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">!less passwd<\/pre>\n<p>Each user&#8217;s UID can be found in the third column, separated by colons:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1748\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1.png\" alt=\"using passwd file to find user ids for remote server\" width=\"800\" height=\"230\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1-300x86.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1-150x43.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1-768x221.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1-100x29.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/sftp-passwd-file-user-ids-remote-server-1-700x201.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>In the standard shell, the chmod command works the same way:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">chmod [permission] [path to file]<\/pre>\n<p>The chgrp command can also be used to change group file ownership:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">chgrp [group ID] [path to file]<\/pre>\n<p>In the Remote Server, the group IDs also get into the third column of the \/etc\/group file as such with the UIDs<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get \/etc\/group<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">!less group<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1750\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1.png\" alt=\"using group file finding group id for remote server\" width=\"800\" height=\"223\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1-300x84.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1-150x42.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1-768x214.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1-100x28.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/group-file-find-group-ids-remote-server-1-700x195.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>In Local system files which are moved changes default file approval that the SFTP allows you to set local umask<\/p>\n<p><strong>For instance:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lumask 022<\/pre>\n<p>The aforementioned command modifies the local umask to 022. Following the setting of this umask, the 644 permission is now the default for all transmitted files. By using the -p switch, the original permission can still be preserved. Using SFTP to mimic the actions of shell commands is another technique to modify local file permissions. To accomplish this, precede the command name with an exclamation mark (!).<\/p>\n<p>Using the local system&#8217;s chmod command, for instance<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">!chmod [permission] [path to file]<\/pre>\n<h4>Wrapping With the Use of SFTP to Transfer Files<\/h4>\n<p>Using secure file transfer protocols like SFTP is vital for data security. That becomes a major priority in today&#8217;s connected society. This article shows how easy it is to use SFTP. It creates a secure connection between a local machine and a distant server. By following these best practices, users can transfer files safely. It will ensure data integrity and avoid security risks.<\/p>\n<p>Remember that having a secure password and upgrading software often is important. Following security recommendations will help to protect your data during SFTP file transfers. Accept SFTP as a secure way to transfer files. Take strong steps to protect your digital assets. Hope this helps you with how to use SFTP to transfer files.<\/p>\n<h3>Frequently Asked Questions (FAQ)<\/h3>\n<p><strong>1. What benefits does using SFTP with DomainRacer hosting offer?<\/strong><\/p>\n<p>SFTP offers encrypted file transfers, ensuring the greatest data security. DomainRacer\u2019s powerful hosting empowers you to easily manage files. Safeguard your data from prying eyes, ensuring peace of mind. With us, unauthorized access stands no chance. This makes it ideal for sensitive projects or client data.<\/p>\n<p><strong>2. What actions can I take if SFTP isn&#8217;t connecting?<\/strong><\/p>\n<p>If SFTP is unsuccessful in connecting:<\/p>\n<ul>\n<li><strong>Check SSH Status:<\/strong> Make sure your server&#8217;s SSH service is running.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sudo systemctl status sshd  \r\n<\/pre>\n<ul>\n<li><strong>Verify Login Credentials:<\/strong> Recheck your username, password, or SSH key.<\/li>\n<li><strong>Firewall Settings:<\/strong> Make sure port 22 (or your custom SSH port) is open.<\/li>\n<\/ul>\n<p>DomainRacer&#8217;s support team is always available to help with SFTP connectivity issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SFTP is a secure, encrypted way to transfer data from a local computer to a remote server. It provides a secure alternative to FTP. It&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1833,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/474"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":16,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":2640,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/474\/revisions\/2640"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/1833"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}