Configuration Management via SSH/SCP

tsch Posts: 9
First Comment
edited April 2021 in Security
Is there a way to copy files via SSH/SCP. We have a large amount of Zyxel USG's and want a Configuration Management, but so far only FTP works for me to transfer the Config. Are there other recommended ways to save the config of many Zyxel Firewalls? I tried via SCP but it seemed not be working. Thanks. 

All Replies

  • lalaland
    lalaland Posts: 86
    First Answer First Comment Friend Collector Fifth Anniversary
     Ally Member
    How about using python script to get configuration backup. just one click to download from device.
    It might reduce your maintenance effort.
    from ftplib import FTP

    #Device info
    USG_IP = ""
    ID = "admin"
    Password = "12345"
    Filename = 'startup-config.conf'

    #Log in to USG
    ftp = FTP(USG_IP)
    ftp.login(user=ID, passwd=Password)

    #Change folder and list

    localfile = open(Filename, 'wb')
    ftp.retrbinary('RETR ' + Filename, localfile.write, 1024)

    #Connection close

  • CHS
    CHS Posts: 172
    5 Answers First Comment Friend Collector Fifth Anniversary
     Master Member

    Hi @lalaland

    Thanks for your sharing :)

Security Highlight