Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Andreas Schneider
On Monday, 14 November 2016 08:28:44 CET Mani Amoozadeh wrote: > I dont know. How can I check it? > > I am using the exact same sample code provided in the documentation. > > I am sending a file from x86-64 system to ARM system. Create a loop, read 16k and sftp_write 16k till you hit EOF ...

Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Mani Amoozadeh
Here is my code for copying files with SFTP in libssh. Do you think reading the file contents into a string might be the issue? void SSH::copyFile_SFTP(boost::filesystem::path source, boost::filesystem::path remote_dir) {     std::lock_guard

Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Mani Amoozadeh
Following the last email I don't see any options to change chunk size when copying a file to the remote computer: #include #include #include int sftp_helloworld(ssh_session session, sftp_session sftp) { int access_type = O_WRONLY

Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Mani Amoozadeh
I dont know. How can I check it? I am using the exact same sample code provided in the documentation. I am sending a file from x86-64 system to ARM system. On Nov 14, 2016 6:58 AM, "Andreas Schneider" wrote: > On Sunday, 13 November 2016 23:33:48 CET Mani Amoozadeh wrote: > > Hello, > > > > I

Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Andreas Schneider
On Sunday, 13 November 2016 23:33:48 CET Mani Amoozadeh wrote: > Hello, > > I write a simple C++ program to copy files from my local PC to remote PC > using SFTP implemented in libssh library. I followed the sample code in > section 'Copying a file to the remote computer' in > 'http://api.libssh.o