C# SFTP SSH.NET socket read operation has timed out after 30000 milliseconds.

Use C# to dev sftp client by SSH.NET but when connect to SFTP server get exception error message socket read operation has timed out after 30000 milliseconds.

Problem:SSH.NET Connect to SFTP server get exception error message socket read operation has timed out after 30000 milliseconds.

Seems port number 's problem , my SFTP server port number not by default 22 , even though filled port number in SSH.NET API.

How I slove this problem :Suggest change another C# SFTP API , I choose WINSCP.NET.

https://winscp.net/eng/docs/library

Reference:

https://stackoverflow.com/questions/54014749/ssh-net-timeout-when-connecting-to-aws-managed-sftp-server-in-c-sharp

https://github.com/sshnet/SSH.NET/pull/506/commits/5a60e7b24b80d8f9a6c22e657140486aaeea4e77