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 !

11th Jan 2022, 9:47 PM
Yann Meunier
2 Answers
11th Jan 2022, 11:18 PM
Coding Cat
Coding Cat - avatar
+ 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.
12th Jan 2022, 12:48 AM
Slick
Slick - avatar