Skip to content

SSH.net Cisco Router Initial connection failed #469

Closed
@nabamb

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.

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