This article provides information on how to establish a SSH trust relationship between a pair of SRX devices.
root@srx1% mkdir /var/tmp/srx0_backup root@srx1% chown testuser:wheel /var/tmp/srx0_backup
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: c3:eb:48:bb:e4:db:cf:c7:25:37:d5:ab:e4:58:d8:87 root@srx0
root@srx0% scp id_rsa.pub root@ <srx1 ip> :/root/.ssh/id_rsa.pub
set system login user testuser class super-user set system login user testuser authentication load-key-file /root/.ssh/id_rsa.pub commit
set system archival configuration transfer-on-commit set system archival configuration archive-sites set set system archival configuration archive-sites "scp://testuser@ <srx1 iP> :/var/tmp/srx0_backup" commit
On SRX0:
root@srx0> show log messages | match Juniper.conf May 4 00:41:44 srx0 logger: transfer-file: Transferred /var/transfer/config/srx0_juniper.conf.gz_20120504_003626
root@srx1% ls -al /var/tmp/srx0_backup/ -rw-r----- 1 testuser wheel 1400 May 4 00:36 srx0_juniper.conf.gz_20120504_003626