I am trying to connect to a customers SFTP via C# Code, When I run the console app from my local PC it works fine, when I deploy it to Azure it fails, The logs are saying
. 2018-09-12 04:06:51.022 Server offered these authentication methods: publickey,password
. 2018-09-12 04:06:51.475 Offered public key
! 2018-09-12 04:06:52.103 Server refused our key
. 2018-09-12 04:06:52.725 Server refused our key
. 2018-09-12 04:06:52.725 Server offered these authentication methods: publickey,password
. 2018-09-12 04:06:53.178 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2018-09-12 04:06:53.859 Disconnected: Unable to authenticate
. 2018-09-12 04:06:58.933 Failed to connect to <IP>: Network error: Connection timed out
. 2018-09-12 04:06:58.933 Knocking FTP port.
. 2018-09-12 04:07:00.960 FTP port did not open.
I can log on with WinSCP UI and transfer no problem. The It Guys that side say that
The first two SYN packages have ECE and CWR flags enabled. These are apparently a new extension to TCP for congestion management. I suspect that their appearance is poisoning the network stack and host firewall states. It would be preferable if that feature could be disabled.
ANy help in this would be appreciated