SCP work fine thank you
This was the solution I came up with for those interested. Basically getting the "show configuration" output as string and writing it to a file
from jnpr.junos import Device
####Connect to Device
dev = Device(host='192.168.56.2', user='root', password='Juniper1')
#192.168.56.2
dev.open()
class Create_Config():
def __init__(self):
config=str(self.get_conf()) ####Get Config as Str
#####Create/Write to Config to File
with open("Config.config", "w") as text_file:
text_file.write(config)
text_file.close()
#####Return Configuration
def get_conf(self):
return dev.cli("show configuration")
run=Create_Config()