Re: F-Secure Server - WeOnlyDo Client issue to au - WeOnlyDo Discussion board

Re: F-Secure Server - WeOnlyDo Client issue to au (General questions)

by wodSupport, Sunday, October 31, 2004, 02:22 (7329 days ago) @ Sreekumar

Sreekumar,

I don't have problems like you. I just installed F-Secure (It announced itself as SSH-2.0-3.2.0 F-Secure SSH Windows NT Server)

and here's what I did:

1. I generated key and saved it locally
[code]WeOnlyDo.Security.Cryptography.KeyManager km = new WeOnlyDo.Security.Cryptography.KeyManager();
km.Generate(WeOnlyDo.Security.Cryptography.SSHKeyTypes.DSAKey);
km.Save(WeOnlyDo.Security.Cryptography.SSHKeyTypes.DSAKey, c:\\mykey.priv );[/code]


2. I took it's public key
[code]String a = km.PublicKeySSH(WeOnlyDo.Security.Cryptography.SSHKeyTypes.DSAKey);
Console.WriteLine(a);[/code]

and pasted contents on the server in c:\documents and settings\kreso\.ssh2\1.pub
and in file c:\documents and settings\kreso.ssh2\authorization I added line
key 1.pub

3. I used this code to connect:
[code]WeOnlyDo.Security.Cryptography.KeyManager km = new WeOnlyDo.Security.Cryptography.KeyManager();
km.Load( c:\mykey.priv );

WeOnlyDo.Client.SSH ssh = new WeOnlyDo.Client.SSH();
ssh.Hostname = 192.168.0.31 ;
ssh.Login = kreso ;
ssh.Authentication = WeOnlyDo.Client.SSH.Authentications.PublicKey;
ssh.PrivateKey = km.PrivateKey(WeOnlyDo.Security.Cryptography.SSHKeyTypes.DSAKey);
ssh.Blocking = true;
ssh.Connect();[/code]

it worked without any problems.

Can you try above steps?


Complete thread: