.net - IP*Works SSH PublicKey Auth with C# -


I'm trying to get IP * Athameed to work certificates, better Pblikki, with SSH / Seksik Works of Everything works fine when I am using simple user / password combination.

My Code for the Public:

  private static void DoSExec () {var sexec = new Sexec {SSHUser = "abc", SSHHost = "someserver", SSHPort = 22, SSHAuthMode = SexecSSHAuthModes.amPublicKey, SSHCert = new certificate (@ "c: \ work \ key.pem"), SSHEncryptionAlgorithms = "aes128-ctr, aes192-ctr, Aes256-ctr, 3des-cbc"}; Sexec.config ("SSHMacAlgorithms = HMAC-SHA1"); sexec.Config ( "SSHAcceptServerHostKeyFingerPrint = C9: C 4: 53: 46: 19: E7: 58: EC: A7: 3d: 29: CC: 42: 87: F 5: a5"); Sexec.OnStdout + = SexecOnStdout; Sexec.OnConnected = SexecOn Connected; Sexec.OnError + = SexecOnError; Sexec.OnDisconnected + = SexecOnDisconnected; Sexec.OnStderr + = SexecOnStderr; Try {sexec.SSHLogon (host, port); If (sexual .. connected) {sexec.Execute ("ls"); If (sexec.ExitStatus! = 0) {Console.WriteLine (sexec.ErrorMessage); } Sexec.DoEvents (); Sexec.SSHLogoff (); }} Hold (Exception Pre) {Console.WriteLine (ex.Message); } Console. Readkey (); }  

IP Client Configuration * Works SSH Lib perfectly configured on the SSH server side.

connection is working well server tells us that the SSH connection through my client. The connection persists until the customer is sending SSHLogoff () - signal.

Problem: Execution () - The method is doing ... nothing!

Any ideas what went wrong?

Thank you very much.

Best regards, Andreas


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -