Table 3-2 Essential sftp Commands
Command | Description |
---|---|
rmdir | Deletes a directory on the remote system. |
get | Copies a file from the remote working directory to the local working directory. |
put | Copies a file from the local working directory to the remote working directory. |
delete | Deletes a file from the remote working directory. |
- How to use SFTP command?
- What is SFTP example?
- What is SFTP command in Linux?
- How to transfer directory using SFTP?
How to use SFTP command?
How to Connect to SFTP. By default, the same SSH protocol is used to authenticate and establish an SFTP connection. To start an SFTP session, enter the username and remote hostname or IP address at the command prompt. Once authentication is successful, you will see a shell with an sftp> prompt.
What is SFTP example?
Let's look at some of the examples of SFTP commands: sftp> put – Upload file. sftp> get – Download file. sftp> cd path – Change remote directory to 'path'
What is SFTP command in Linux?
SFTP (Safe File Transfer Protocol) is part of the SSH protocol designed to securely transfer files between remote systems. It allows users to view, manage, and change file and directory permissions on remote systems.
How to transfer directory using SFTP?
How to Upload a Directory Using sFTP. In order to upload a whole directory to a remote Linux host, use the put command. However, you will get an error if the directory name doesn't exist in the working directory on the remote host as shown in the screenshot below.