< Home

put (SFTP client view)

Function

The put command uploads files to the remote SFTP server.

If the name of the file on the remote server is not specified, its name will be the same as that of the local file by default.

Format

put local-filename [ remote-filename ]

Parameters

Parameter Description Value

local-filename

Specifies the name of the local source file on the SFTP client.

The name is a string. The absolute path of the file ranges from 1 to 64 characters.

remote-filename

Specifies the name of the destination file on the SFTP server.

The name is a string. The absolute path of the file ranges from 1 to 64 characters.

Views

SFTP client view

Default Level

2: Configuration level

Usage Guidelines

If remote-filename is not specified, the name of the uploaded destination file is the same as that of the source file on the SFTP client by default.

Example

# Upload files to 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> put wm.cfg
local file: wm.cfg --->  Remote file: /wm.cfg
Info: Uploading file successfully ended.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >