No connection Made (General questions)
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
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
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
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