I'd like to get a file onto my raspberry pi from my google cloud compute engine, but I get the following error:
File "/usr/local/lib/python2.7/dist-packages/paramiko/auth_handler.py", line 212, in wait_for_response
raise e
AttributeError: 'str' object has no attribute 'public_blob'
What does this error message mean?
Thanks in advance!
python file:
import paramiko
hostname = '43.123.231.212'
password = 'passw'
username = 'dosop'
port = 22
gc_path='/home/do//assets/locations.txt'
remotepath='/home/pi/ada.txt'
t = paramiko.Transport((hostname, 22))
t.connect(username=username, password=password, pkey="/home/pi/dos/priv_key"
sftp = paramiko.SFTPClient.from_transport(t)
sftp.get(gc_path, remotepath)