TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: JACK LOBINGIER
from: GRANT WEASNER
date: 2017-02-19 19:12:00
subject: Re: SCP script with Pytho

 JL> from subprocess import call
 JL> cmd='scp -i id_rsa sample.txt jack@192.168.1.103 /home/jack/pi_data'
 JL> call (cmd.split ())

are you using ssh keys for authentication? 

I've got some python working to transfer data.
here is a command. 
use the subprocess. 

subprocess.call("scp -q %s user@host:/path/file" %(inputfile, s), shell =
True)

you will need to make sure you have keys on the target system basically the
host. 

--- Mystic BBS v1.12 A31 (Windows)
* Origin: Agency BBS | telnet://agency.bbs.geek.nz (3:770/100)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.