The get command downloads files from the remote SFTP server and saves the files to the local device.
By default, if not specified, the name of the local file is the same as that of the file on the remote SFTP server.
| Parameter | Description | Value |
|---|---|---|
remote-filename |
Specifies the name of the source file on the SFTP server. |
The name is a string. The absolute path of the file ranges from 1 to 64 characters. |
local-filename |
Specifies the name of the local file on the SFTP client. |
The name is a string. The absolute path of the file ranges from 1 to 64 characters. |
If local-filename is not specified, the default name of the file downloaded to the local device is the same as that of the file on the SFTP server.
# Download files from the SFTP server.
<sysname> system-view [sysname] sftp 10.1.1.1 Please input the username:client001 Trying 10.1.1.1 ... Press CTRL+K to abort Enter password: <sftp-client> get abc.txt Remote file: abc.txt ---> Local file: abc.txt Info: Downloading file successfully ended.