title: Cannot connect remote SFTP using SSH.NET package in .Net Core
body: <p>I want to connect to SFTP to download files from there. I can able to login into SFTP by using the credential via website and Command Prompt (using ftp command) as well. Now, I want to connect it from my .Net code using specific credential.</p>
  <p>I am using SSH.NET with version 2020.0.1 and .Net Core Runtime version 3.1.18 and .Net Core SDK version 3.1.412 and OS is Windows (10.0.17763) 64 bit.</p>
  <p>While trying to connect with SFTP via .Net Framework, I can doing it comfortably using same DLL version downloaded from NuGet. Now, when I am using same piece of code for .Net Core project, it is throwing exception. I have downloaded same package version from NuGet for .Net Core.</p>
  <p>Below is my code:</p>
  <pre><code>public void Connect()
  {
      string host = &quot;xxxx.xx.xxx&quot;;
      int port = xx;
      string userid = &quot;xxxx&quot;;
      string password = &quot;xxxx&quot;;
      
      try
      {
          Renci.SshNet.SftpClient client = new Renci.SshNet.SftpClient(host, port, userid, password);
          if (!client.IsConnected)
          {
              client.ConnectionInfo.Timeout = TimeSpan.FromMinutes(1);
              client.Connect();
              Console.WriteLine(&quot;SFTP client connected successfully&quot;);
          }
      }
      catch(Exception ex)
      {
          Console.WriteLine(ex.Message);
      }
  }
  </code></pre>
  <p>The exception message that I am getting when I am using .Net Core is as below:</p>
  <blockquote>
  <p>Accessing a hash algorithm by manipulating the HashName property is not
  supported on this platform. Instead, you must instantiate one of the
  supplied subtypes (such as HMACSHA1.)</p>
  </blockquote>
  <p>In which place I am doing mistake? Any help would be highly appreciated !!</p>