[Contents] [Prev] [Next] [Index] [Report an Error]


Step 2: Copy Files between the Local Router and a Remote System

Action

You can copy a configuration file from a Routing Engine to a remote system in the network using the File Transfer Protocol (FTP) or secure copy protocol (scp) in any one of the following ways:

In the following example, /config/juniper.conf is the local file and hostname is the FTP server:

root@host> file copy /config/juniper.conf ftp://hostname/juniper.conf
Receiving ftp: //hostname/juniper.conf (2198 bytes): 100%
2198 bytes transferred in 0.0 seconds (2.69 MBps)

In the following example, /config/juniper.conf is the local file, user is the username, testing123 is the password, and hostname is the FTP server:

root@host> file copy /config/juniper.conf 
ftp://user:testing123@hostname/juniper.conf
Receiving ftp: //user:testing123@hostname/juniper.conf (2198 bytes): 100%
2198 bytes transferred in 0.0 seconds (2.69 MBps)

In the following example, /config/juniper.conf is the local file, user is the username, and hostname is the FTP server:

root@host> file copy /config/juniper.conf 
ftp://user@hostname/juniper.conf
Password for user@hostname: ******
Receiving ftp: //user@hostname/juniper.conf (2198 bytes): 100%
2198 bytes transferred in 0.0 seconds (2.69 MBps)

In the following example, /config/juniper.conf is the local file, user is the username, and ssh-host is the scp server:

root@host> file copy /config/juniper.conf 
scp://user@ssh-host/tmp/juniper.conf
user@ssh-host's password: ******
juniper.conf         100% 
|********************************************************
*************************|  2198       00:00 


NOTE: You cannot use scp or ssh to copy a file in the worldwide version of the JUNOS software.



[Contents] [Prev] [Next] [Index] [Report an Error]