No connection Made (General questions)

by dk, (7010 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.

locked

Complete thread: