The FTP protocol requires a client to send a remote username and password on each FTP request to a server. When you copy a
configuration file from the router to a server using FTP, the Cisco IOS software sends the first valid username it encounters
in the following list:
The username specified in the copy privileged EXEC command, if a username is specified.
The username set by the ipftpusername global configuration command, if the command is configured.
The router sends the first valid password it encounters in the following list:
The password specified in the copy privileged EXEC command, if a password is specified.
The password set by the ip ftp password command, if the command is configured.
The router forms a password username
. The variable username
is the username associated with the current session, routername
is the configured host name, and domain
is the domain of the router.
The username and password must be associated with an account on the FTP server. If you are writing to the server, the FTP
server must be properly configured to accept the FTP write request from the user on the router.
If the server has a directory structure, the configuration file or image is written to or copied from the directory associated
with the username on the server. For example, if the system image resides in the home directory of a user on the server, specify
that user’s name as the remote username.
Refer to the documentation for your FTP server for more information.
Use the ip ftp username and ip ftp password commands to specify a username and password for all copies. Include the username in the copy command if you want to specify a username for that copy operation only.