Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SSH.net Cisco Router Initial connection failed #469

Copy link
Copy link
@nabamb

Description

@nabamb
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.