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

Advertisement

Xerox
Joined:
Posts:
1
Location:
Lexington, KY

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}

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,476
Location:
Prague, Czechia

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).

Reply with quote

Advertisement

You can post new topics in this forum