No connection Made - WeOnlyDo Discussion board

No connection Made (General questions)

by dk, Wednesday, February 22, 2006, 11:32 (6849 days ago)

Hi,

1. I am trying to use sftp.net to connect to a machine which is SSH1 and this throws an exception No connection could be made because the target machine actively refused it . Is SSH1 causing this to fail ?

2. On another machine where i am able to connect using login/password, How do we authenticate using private key ?
ftp.PrivateKey = System.Text.Encoding.UTF8.GetBytes(priv);
throws an exception : Invalid key format . I am assinging the priv variable a the binary format of the key.

Please Help

Thanks
Dk.

Re: No connection Made

by wodSupport, Wednesday, February 22, 2006, 16:27 (6848 days ago) @ dk

Dk,

hi. When server refused connection, that means it's not listening on SSH's port (usually 22). Are you sure you have server there running? If you go to command prompt and type

telnet that.server.com 22

what happens?

As for private key, I can't tell you much without checking actual structure of the key - how does this key look like, how did you generate it?

Kreso

Re: No connection Made

by Dk, Thursday, February 23, 2006, 07:48 (6848 days ago) @ wodSupport

Hi

When i telnet to the server i get the response SSH-1.99-OpenSSH_3.8p1.
We also have SSH.NET will this not support both the protocols ?

The server is up and running 24/7 and we still receive that No connection made as the target actively refused it exception.

I will get back to you on how the keys were generated.

I am working on this for the first time, is there any references on basics ?

Thanks
Dk.

Re: No connection Made

by wodSupport, Thursday, February 23, 2006, 12:55 (6848 days ago) @ Dk

Dk,

I am sure wodSSH.NET will work with OpenSSH3.8. Perhps you didn't select SSH protocol at all in Protocol property? wodSSH.NET defaults to Telnet protocol, if i'm correct.

What value did you put to Port property before calling Connect?

Kreso