sftp
To start the secure FTP (SFTP) client, use the sftp command.
sftp [username @ host : remote-filenam e] source-filename dest-filename [source-interface type
interface-path-id] [vrf vrf-name]
Syntax Description
(Optional) Name of the user performing the file transfer. The at symbol (@)
following the username is required.
username
(Optional) Name of the Secure Shell File Transfer Protocol (SFTP) server.
The colon (:) following the hostname is required.
hostname:remote-filename
SFTP source, including the path.
source-filename
SFTP destination, including the path.
dest-filename
(Optional) Specifies the source IP address of a selected interface for all
outgoing SSH connections.
source-interface
Interface type. For more information, use the question mark (?) online help
function.
type
Physical interface or virtual interface.
Use the show interfaces command in EXEC mode to see a list of
all interfaces currently configured on the router.
Note
For more information about the syntax for the router, use the question mark
(?) online help function.
interface-path-id
Specifies the name of the VRF associated with the source interface.
vrf vrf-name
Command Default
If no username argument is provided, the login name on the router is used. If no hostname argument is provided,
the file is considered local.
Command Modes
EXEC
Command History
ModificationRelease
This command was introduced.Release 2.0
The srcfile keyword was removed and was replaced by an argument for
this same purpose.
Support was added for the vrf and the source-interface keywords.
Release 3.8.0
Cisco IOS XR System Security Command Reference for the Cisco CRS Router, Release 4.1
258 OL-24740-01
Secure Shell Commands
sftp