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: WinSCP.SessionRemoteException: The server rejected SFTP connection, but it listens for FTP connectio

Please attach a session log file both from GUI and .NET assembly (Session.SessionLogPath).
Xerox

WinSCP.SessionRemoteException: The server rejected SFTP connection, but it listens for FTP connectio

WinSCP version 5.7.6.0
OS Version: Windows 7

I can able to connect using the WINSCP application but when I use the sample code its giving me the following error message

+ ex {WinSCP.SessionRemoteException: Network error: Connection to "206.213.253.125" timed out. ---> WinSCP.SessionRemoteException: The server rejected SFTP connection, but it listens for FTP connections.

Did you want to use FTP protocol instead of SFTP? Prefer using encryption.
--- End of inner exception stack trace ---
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForGroupAndCreateLogReader()
at WinSCP.Session.Open(SessionOptions sessionOptions)
at ACS.Aetna.Common.GenericClients.Ftp.FtpUtils.SftpLib.DownloadFiles(String downloadDirectory, String remoteDirectory, String remoteFileNameMask, Boolean deleteFileOnHost, List`1& log, List`1& downloadedFileList) in c:\Projects\ACS\Aetna\Common\GenericClients\Ftp\FtpUtils\SftpLib.cs:line 205} System.Exception {WinSCP.SessionRemoteException}