I am trying to access the FTP server using SSH.NET library without any luck. I am providing same credidentials as in FileZilla which are working fine. The SSH throws errow "Socket read operation has timed out". If I use the same code as bellow but without specifying the port :21 I got an error : "User cannot authenitcated" . Can someone privide insights?
string tempHost = @"ftp.mywebsite.com";
string tempUser = @"[email protected]";
string tempPassword = @"try123";
using (SftpClient sftpClient =
new SftpClient((ConnectionInfo)new PasswordConnectionInfo(tempHost,21, tempUser, tempPassword)))
{
sftpClient.Connect();
}