2016年5月16日 星期一

Fortigate SCp backup command with linux

https://blog.linuxnet.ch/scp-backup-of-fortinet-configuration/


To create a Fortigate Backup you only need to copy the sys_config via SCP from the Firewall.
The following describes the steps to do a backup and to setup the SSH/SCP on the Fortigate:
  • Enable SSH Access on the Interface:
config system interface
edit <interface name>
set allowaccess ping https ssh
end
  • Enable SCP on the firewall
config system global
set admin-scp enable
end
  • Add Users Public Key
config system admin
edit admin
set ssh-public-key1 "ssh-rsa ... user@hostname.com"
next
end
  • Backup using SCP
From Linux:
scp admin@<fortinet-ip-address>:fgt-config /backup
From Windows:
pscp admin@<fortinet-ip-address>:fgt-config /backup

沒有留言:

張貼留言