There are a couple of prerequisites before you can copy the config from a NetScreen or SSG via scp. First, obviously ssh and scp need to be enabled:
set ssh version v2 set ssh enable set scp enable
And of course, you need to enable ssh management on the interface you’re going to connect to the device on:
set interface ethernet0 manage ssh
Once that has been done, from your PC, try the following:
scp netscreen@device-hostname:ns_sys_config ssg.cfg
And you should then have a file called ssg.cfg in that directory. Once again, simple when you know how.
It is also possible to load RSA/DSA keys against ScreenOS usernames, so that password-less login for ssh/scp can be utilised, allowing this method to form the basis of automated config backups.
Leave a Reply
You must be logged in to post a comment.