I am using the WinSCP in order lớn tải về files using FTP protocol.

I got this error in the XML log. Any idea?

Network error: Connection lớn "example.com" refused. The server rejected SFTP connection, but it listens for FTP connections.

Did you want lớn use FTP protocol instead of SFTP? Prefer using encryption.

asked Apr 23, năm trước at 10:52

WinSCP uses SFTP protocol by mặc định, contrary lớn most other tệp tin transfer clients, which use FTP protocol.

For this reason, when you try lớn connect using the mặc định SFTP protocol lớn a server that does not have an SSH/SFTP service (does not have a port 22 open), but it has an FTP service (a port 21 open), it suggests you that you might have actually wanted lớn use the FTP.

You need lớn select the FTP protocol explicitly on Login dialog:
https://winscp.net/eng/docs/ui_login

For more details:
https://winscp.net/eng/docs/message_server_rejected_sftp_listens_for_ftp

answered Apr 23, năm trước at 12:44

4

Even if all these protocols have similar names they are different:

  • FTP - tệp tin transfer protocol RFC959
  • SFTP - "secure tệp tin transfer", which is tệp tin transfer over a SSH connection
  • SCP - "secure copy", also tệp tin transfer over SSH
  • FTPS - "FTP secure", an extension of the original FTP with use of SSL (not SSH) connections

So SFTP and SCP need an SSH server at the peer, while FTP/FTPS need an FTP(s) server.

WinSCP can probably all of these, but it can only vì thế FTPS if the FTP server has the SSL extension enabled. So if you want lớn vì thế FTPS (and not SFTP) please kiểm tra your servers configuration.

answered Apr 23, năm trước at 11:14

1