You can also use this or this tutorial to configure sftp only user on your Linux system without SSH access. In this tutorial you will learn:

Connect to Remote SFTP Server

Use sftp command-line utility to connect remote sftp system. You need the sftp user and hostname or IP address of the remote host. Enter sftpuser account password to connect:

Navigation in directories on SFTP is as simple as the local system. Use ‘pwd’ command to check the current working directory. Then use the ‘ls’ command to list all files and directories in the current directory. To navigate to other directories use ‘cd’ command followed by destination directory. Use ‘cd ..’ to navigate to the parent directory.

Upload files to SFTP

Now, I need to upload some files under uploads directory. Use the ‘put’ command to upload README.md from the local system to the remote sftp directory. You can also provide the absolute path of the local file and remote directory without navigating directories.

Download Files from SFTP

To download files from the remote sftp directory use the ‘get’ command. For example to download REMOTE_FILE.md from the remote system to the current local directory. Similarly, you can provide an absolute path to download files.

Quit the SFTP Connection

Simply say bye to your remote SFTP server. This will disconnect the SFTP connection and return to your local shell. Alternatively, you can also use quit or exit commands to close the SFTP session.

Conclusion

In this tutorial, you have learned to how to download and upload files using sftp command line.

How to Download and Upload files with SFTP Command   TecAdmin - 25How to Download and Upload files with SFTP Command   TecAdmin - 43


title: “How To Download And Upload Files With Sftp Command Tecadmin” ShowToc: true date: “2022-11-26” author: “Darnell Montagna”


You can also use this or this tutorial to configure sftp only user on your Linux system without SSH access. In this tutorial you will learn:

Connect to Remote SFTP Server

Use sftp command-line utility to connect remote sftp system. You need the sftp user and hostname or IP address of the remote host. Enter sftpuser account password to connect:

Navigation in directories on SFTP is as simple as the local system. Use ‘pwd’ command to check the current working directory. Then use the ‘ls’ command to list all files and directories in the current directory. To navigate to other directories use ‘cd’ command followed by destination directory. Use ‘cd ..’ to navigate to the parent directory.

Upload files to SFTP

Now, I need to upload some files under uploads directory. Use the ‘put’ command to upload README.md from the local system to the remote sftp directory. You can also provide the absolute path of the local file and remote directory without navigating directories.

Download Files from SFTP

To download files from the remote sftp directory use the ‘get’ command. For example to download REMOTE_FILE.md from the remote system to the current local directory. Similarly, you can provide an absolute path to download files.

Quit the SFTP Connection

Simply say bye to your remote SFTP server. This will disconnect the SFTP connection and return to your local shell. Alternatively, you can also use quit or exit commands to close the SFTP session.

Conclusion

In this tutorial, you have learned to how to download and upload files using sftp command line.

How to Download and Upload files with SFTP Command   TecAdmin - 82How to Download and Upload files with SFTP Command   TecAdmin - 39