The rcp protocol requires a client to send a
remote username on each rcp request to a server. When you copy a configuration file from a server to the router using rcp,
the Cisco IOS software sends the first valid username in the following list:
The username set by the ip rcmd remote-username command, if the command is configured.
The remote username associated with the current tty (terminal) process. For example, if the user is connected to the router
through Telnet and was authenticated through the username command, the router software sends the Telnet username as the remote username.
In Cisco products, ttys are commonly used in access servers. The concept of tty originated with UNIX. For UNIX systems, each
physical device is represented in the file system. Terminals are called tty devices
, which stands for teletype
, the original UNIX terminal.
The router host name.
For boot commands using rcp, the software sends the router host name; you cannot explicitly configure the remote username.
For the rcp copy request to execute successfully, an account must be defined on the network server for the remote username.
If you are writing to the server, the rcp server must be properly configured to accept the rcp write request from the user
on the router. For UNIX systems, you must add an entry to the .rhosts
file for the remote user on the rcp server. For example, if the router contains the following configuration lines.
ip rcmd remote-username User0
and the router’s IP address translates to Router1.company.com, then the .rhosts
file for User0 on the rcp server should contain the following line:
Refer to the documentation for your rcp server for more details.
If the server has a directory structure, the configuration file or image is written or copied relative to the directory associated
with the remote username on the server. Use the ip rcmd remote-username command to specify which directory on the server to use. For example, if the system image resides in the home directory of
a user on the server, you can specify that user’s name as the remote username.
If you copy the configuration file to a personal computer used as a file server, the computer must support rsh.