Chapter 10 Install and System Administration for FortiOS 5.0 : Basic Administration : Configuration backups : Backup and restore a configuration file using SCP : Using the SCP client
  
Using the SCP client
The FortiGate unit downloads the configuration file as sys_conf. Use the following syntax to download the file:
Linux
scp admin@<FortiGate_IP>:fgt-config <location>
Windows
pscp admin@<FortiGate_IP>:fgt-config <location>
The following examples show how to download the configuration file from a FortiGate-100D, at IP address 172.20.120.171, using Linux and Windows SCP clients.
Linux client example
To download the configuration file to a local directory called ~/config, enter the following command:
scp admin@172.20.120.171:fgt-config ~/config
Enter the admin password when prompted.
Windows client example
To download the configuration file to a local directory called c:\config, enter the following command in a Command Prompt window:
pscp admin@172.20.120.171:fgt-config c:\config
Enter the admin password when prompted.
See Also
Configuration backups
Backup and restore a configuration file using SCP
Enable SSH access on the interface
SCP public-private key authentication
Restoring a configuration using SCP