Host disconnecting in the middle of file transfer after establishing connection.

Advertisement

Bivek
Joined:
Posts:
2
Location:
Sikkim

Host disconnecting in the middle of file transfer after establishing connection.

I am trying to use winscp to upload files to a sftp server, I am able to successfully establish connection to the sftpserver but when I inititae the file transfer after some time it shows the following error:
-20210127.bak |      382307 KB | 1162.9 KB/s | binary |  30%
Host is not communicating for more than 15 seconds.
Still waiting...
Note: If the problem repeats, try turning off 'Optimize connection buffer size'.
Warning: Aborting this operation will close connection!
(A)bort (60 s): Abort
20210127.bak |      382866 KB |  134.1 KB/s | binary |  30%
Terminated by user.
(A)bort, (R)econnect (5 s): Reconnect
Searching for host...
Connecting to host...
Authenticating...
Using username "****".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
20210127.bak |      382866 KB |  133.7 KB/s | binary |  30%
20210127.bak |      382901 KB |    0.0 KB/s | binary |  30%
Received SSH2_MSG_CHANNEL_DATA for nonexistent channel 0
So this continues until I abort the process
I have tried to turn off the optimize buffer option using -rawsettings FSProtocol=2 SendBuf=0 SshSimple=0
but still I am getting this error.
.bat file:
"C:\Program Files (x86)\WinSCP\winscp.com" /ini=nul /script=trial.txt /log=D:\Bivek\example.log
trial.txt:
(I cant show my username and password for security reasons)
open sftp:***/ -hostkey="***" -rawsettings FSProtocol=2 SendBuf=0 SshSimple=0
put -nopreservetime -resume "path_to_the_backup_file"
exit
I am sharing the log file too
Any help is highly appreciated
  • logss.txt (13.04 KB, Private file)
Description: log txt

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
35,191
Location:
Prague, Czechia

Re: Host disconnecting in the middle of file transfer after establishing connection.

Can you upload the file using any other SFTP client?

Reply with quote

Bivek

Host disconnecting in the middle of file transfer after establishing connection.

Actually, I need the script to work using this sftp client only.

Reply with quote

martin
Site Admin
martin avatar

Re: Host disconnecting in the middle of file transfer after establishing connection.

OK, but can you answer my question?

Reply with quote

Advertisement

You can post new topics in this forum