title: SSH.net Cisco Router Inital connect failed
body: <p>I am hobbyist programmer. I am getting error using Renci.SshNet. It gives me following error at statement <code>sshclient.Connect();</code></p>
  
  <blockquote>
    <p>System.Net.Sockets.SocketException:'The attempted operation is not supported for the type of object referenced'</p>
  </blockquote>
  
  <p>My code is </p>
  
  <pre><code>private void Rstbutton_Click(object sender, RoutedEventArgs e)
  {
      s_ipaddr = IPAddr.Text;
  
      s_username = UsernameBox.Text;
      s_password = PassBox.Password.ToString();
      SecureString myPass = PassBox.SecurePassword;
  
      using (var sshclient = new SshClient(s_ipaddr, s_username, s_password)) 
      {
          sshclient.Connect();
      }
  }
  </code></pre>
  
  <p>I am using Renci.SshNet.dll directly in the reference no installation from Nuget.</p>