put

Syntax

put local-file [ remote-file ]

View

SFTP client view

Default level

3: Manage level

Parameters

local-file: Specifies the name of a local file.

remote-file: Specifies the name for the file on a remote SFTP server.

Description

Use put to upload a local file to a remote SFTP server.

If the remote-file argument is not specified, the file will be saved remotely with the same name as the local one.

Examples

# Upload local file temp.c to the remote SFTP server and save it as temp1.c.

sftp-client> put temp.c temp1.c
Local file:temp.c --->  Remote file: /temp1.c
Uploading file successfully ended