Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: command line connection errors

Check the server's log to see why it closes the connection.
RunningLucky

command line connection errors

Hello,

I'm using WinSCP 4.1.6 to connect using sftp using the command line. When I try connecting to my server, I always get one of the two following errors on my first attempt:

Server unexpectedly closed network connection.
or
Network error: Software caused connection abort

Then on the second attempt and any subsequent attempt (while winscp is running), the connection is successful. My connection string looks like the following: open sftp://username:password@server .

This connection works fine when using WinSCP 3.8.2, but I wish to use 4.1.6 since you are able to supply the hostkey in the connection command.

I have tried connecting through PuTTY and I receive the same error, so I assume this is an issue with the server, but I'm not sure what to ask them about.

I have read through the documentataion, faq and searched google and had no luck to troubleshoot this problem. If anyone has encountered this type of scenario, please let me know how you handled it.

Thank you.