Highlighted
MDMX
Copper

How to connect Dell X1008 Switch using ssh from C# code

I want to connect to Dell X1008 switch using SSH from C# code. Is there a way available to connect ?

When i try to access switch using ssh via Putty  it asks for "Login As" then username and then Password but when i try to connect using telnet it does not prompt for "Login As".

Is there a way so that the switch does not prompt for "Login As" while connecting through SSH.

Tags (3)
0 Kudos
1 Reply
Moderator
Moderator

Re: How to connect Dell X1008 Switch using ssh from C# code

I tried to see if I could get this to not ask for a user, but was unsuccessful. I created a new authentication profile and listed it as "none", then applied it to SSH authentication. This still gives you the "login as" prompt, but after that, it goes straight into the CLI. Even if this worked, it really would not be recommended, as the security of the switch would not be that great. for security reasons, It is very common to see Telnet and HTTP disabled, while leaving HTTPS and SSH enabled. 

I am not very familiar with C#, but would it be possible to use SendKey to automate the login prompt?

http://bit.ly/1FBxvxd

I have also sent you a direct message requesting the service tag of the unit. This is just to help ensure I have the correct product information.

Cheers

Daniel Covey
Dell EMC| Enterprise Support Services
Get support on Twitter:@DellCaresPRO
Download our QRL app:iOS, Android, Windows
Dell Networking Resources

0 Kudos