Skip to content

SSH.net Cisco Router Initial connection failed #469

Closed

Description

@nabamb

I am hobbyist programmer. I am getting error using Renci.SshNet. It gives me following error at statement sshclient.Connect();

System.Net.Sockets.SocketException:'The attempted operation is not supported for the type of object referenced'

My code is

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();
}

}

I am using Renci.SshNet.dll directly in the reference no installation from Nuget.

Activity

  1. WojciechNagorski commented on Dec 21, 2023

    @WojciechNagorski
    Collaborator

    It's done in #1274

  2. added this to the 2023.0.1 milestone on Dec 21, 2023
  3. WojciechNagorski commented on Dec 29, 2023

    @WojciechNagorski
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions