I think this is what you are looking for.
https://www.juniper.net/documentation/en_US/junos-pyez/topics/task/program/junos-pyez-program-files-transferring-scp.html------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home------------------------------
Original Message:
Sent: 08-07-2021 11:37
From: Unknown User
Subject: Need assistance for off-box script to upload configuration
I am trying to run an off-box script to update the juniper device configuration. PyEZ provides the following:
cu.load(url="ftp://username@ftp.hostname.net/filename")cu.load(url="http://username:password@hostname/path/filename")
Can I use scp ?