Start a new topic
Solved

Loading SSH key Invalid Format

 in TSX 3.3.1 I load a RSA key into a credential (with or without passphrase. and i have tried one created on my mac, and on a linux machine). When i try and use that credential for a terminal session, I get "Load key "/Users/user/Library/Caches/com.lemonmojo.RoyalTSX.App/iTerm2Connection/TemporaryPrivateKey_3": invalid format"


Is that the correct way to handle that? Do i have some other thing going on?


Here's the error that is logged


 

Royal TSX Version: 3.3.1.1000

System Information:
    Computer Name: 
        User Name: corvock
       OS Version: Version 10.13.5 (Build 17F77)
        Processor: Intel 80486
              x64: True
     Screen Count: 2
 Current Language: en-US
   Current Locale: en_US

Log Information:
         Severity: Warning
    Date and Time: 10/4/2018 1:37:27 PM
           Action: Plugin
        Object ID: 
      Object Name: 
      Object Type: 
       Local User: 
       Local Host: 
      Remote User: 
              URI: 
      Plugin Name: Terminal (based on iTerm2)
   Plugin Version: 
        Plugin ID: 7c84a650-9896-11e1-a8b0-0800200c9a66
          Message: An error occurred while converting an embedded private key to OpenSSH format.

Details:
System.Security.Cryptography.CryptographicException: Invalid key format.
  at Rebex.Security.Cryptography.Pkcs.PrivateKeyInfo.pvls (System.Byte[] dqw, System.Int32 dqx, Rebex.Security.Cryptography.Pkcs.PrivateKeyInfo+slum& dqy, Rebex.Security.Certificates.KeyAlgorithm& dqz, System.String& dra) [0x0008e] in <d258b17adf014652be7dfe815b0dbb46>:0 
  at Rebex.Security.Cryptography.Pkcs.PrivateKeyInfo.Load (System.IO.Stream input, System.String password) [0x00066] in <d258b17adf014652be7dfe815b0dbb46>:0 
  at Rebex.Net.SshPrivateKey.crpy (System.IO.Stream abq, System.String abr) [0x00202] in <3e53a8bb182c4d909c546f812a2cb1f3>:0 
  at Rebex.Net.SshPrivateKey..ctor (System.Byte[] data, System.String password) [0x00031] in <3e53a8bb182c4d909c546f812a2cb1f3>:0 
  at RoyalCommon.Utils.RoyalPrivateKeyFileConverter.Convert (System.Byte[] keyContents, RoyalCommon.Utils.RoyalPrivateKeyFormat destinationKeyFormat, System.String keyPassphrase, System.String destinationKeyPassphrase) [0x00032] in <0fbcad4516d848a48f2f575e1cfc35e0>:0 
  at RoyalTSX.Plugins.iTerm3.LMiTerm3Options.GetOptions (RoyalDocumentLibrary.RoyalSSHConnection connection, System.String bundlePath, Monobjc.Foundation.NSRect initialFrame, System.String& temporaryPrivateKeyFilePath, System.Boolean& containsPrivilegedPortForwards) [0x00289] in <6f82d1f04d3f4e77814d0c2036cd509b>:0 

 

Login or Signup to post a comment