0
python script with scp
Hello community! I would like to set up a Python script allowing me to be able to retrieve a file present on a linux machine to my machine. And this by connecting in SCP on the Linux machine. Can anyone tell me how to edit my script? I can't find the right wording. Thanks in avance !
2 Answers
+ 2
Idk, but maybe you are looking for something like this:
https://hackersandslackers.com/automate-ssh-scp-JUMP_LINK__&&__python__&&__JUMP_LINK-paramiko/0
+ 1
Yeah i wrote a version of that. use the os module
os.system("scp <file> <location>")
if you like linux though just learn bash and write a script, then pop it in your usr/bin/ so you can call it as a program.