Topic "Fatal: Server unexpectedly closed network connection"

Author Message
[View user's profile]

Joined: 2008-07-03
Posts: 1
I set up SERV-U server with SFTP on port 22 on Windows Server 2003. I wrote a VB6 app that copies files then calls a command file. In the command file, I call psftp.exe and pass userid and password and a .txt file with commands and the server address ( I call this .exe from Task Scheduler in Windows Server 2003(same server as above). Every morning I come in and check the log file, I see it did not connect to the SERV-U SFTP Server. I click on the .exe and it runs fine, copies the files to the SFTP server as it should. If I click on the .exe a second time, it does not connect to SFTP server. I opened up a command prompt and typed what is in the command file and I get the error: "Fatal: Server unexpectedly closed network connection" Sometimes it works and sometimes it does not. Please help....
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
This is not support forum for psftp. However I would recommend you to check the server log file first.
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License