Its a BSD base system, so its not hard:
- add a SSH key on the JunOS device (ssh-keygen on your linux machine, import via set system root-authentication ssh-rsa or whatever)
- get the gziped(!) config via scp:
scp -i <mykeyfile.private> root@<ip of my junos device>:/config/juniper.conf.gz && gunzip juniper.conf.gz
thats it.
For the sake of completeness, here is an example Bash-Script:
#!/bin/bash
timestamp=`date +%Y%m%d-`
# ScreenOS
#scp -i /home/backups/ns netscreen@192.168.1.1:ns_sys_config $timestamp---192.168.1.1.cfg
#pscp -scp -i /home/backups/ns_putty netscreen@192.168.1.1:ns_sys_config $timestamp---192.168.1.1.cfg
# JunOS:
scp -i /home/backups/srx100.key root@192.168.1.1:/config/juniper.conf.gz $timestamp---192.168.1.1.cfg.gz
gunzip $timestamp---192.168.1.1.cfg.gz
exit 0