[Bug 1741029] [NEW] Copying large files not working
Bob
bobot90 at yahoo.com
Wed Jan 3 11:05:05 UTC 2018
Public bug reported:
I am trying to scp a db which is a little larger than 500mb and I am getting copied only a block (I suppose), because the log is:
<SFTPAttributes: [ size=97 uid=0 gid=0 mode=0100644 atime=1514977021 mtime=1514977021 ]>
I tried two versions of doing so but both are behaving the same:
the first code I have tried:
ssh = paramiko.SSHClient()
ssh.load_host_keys(os.path.expanduser(os.path.join('~','envs','test','test.db')))
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(server, username=username, password=password)
sftp = ssh.open_sftp()
sftp.put("/local/path/to/test.db","/remote/path/to/test.db")
the second:
t = paramiko.Transport((hostname))
t.connect(username=username, password=password)
sftp = paramiko.SFTPClient.from_transport(t)
sftp.put("/local/path/to/test.db","/remote/path/to/test.db")
** Affects: paramiko (Ubuntu)
Importance: Undecided
Status: New
** Tags: files large paramiko
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to paramiko in Ubuntu.
https://bugs.launchpad.net/bugs/1741029
Title:
Copying large files not working
Status in paramiko package in Ubuntu:
New
Bug description:
I am trying to scp a db which is a little larger than 500mb and I am getting copied only a block (I suppose), because the log is:
<SFTPAttributes: [ size=97 uid=0 gid=0 mode=0100644 atime=1514977021 mtime=1514977021 ]>
I tried two versions of doing so but both are behaving the same:
the first code I have tried:
ssh = paramiko.SSHClient()
ssh.load_host_keys(os.path.expanduser(os.path.join('~','envs','test','test.db')))
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(server, username=username, password=password)
sftp = ssh.open_sftp()
sftp.put("/local/path/to/test.db","/remote/path/to/test.db")
the second:
t = paramiko.Transport((hostname))
t.connect(username=username, password=password)
sftp = paramiko.SFTPClient.from_transport(t)
sftp.put("/local/path/to/test.db","/remote/path/to/test.db")
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/paramiko/+bug/1741029/+subscriptions
More information about the foundations-bugs
mailing list