Posh-SSH icon indicating copy to clipboard operation
Posh-SSH copied to clipboard

The type initializer for 'Renci.SshNet.Security.Chaos.NaCl.Internal.Ed25519Ref10.LookupTables' threw an exception.

Open ghost opened this issue 2 years ago • 2 comments

Hello

We have been using the command New-SFTPSession with a try-catch which catches the exception and writes a warning message, this is run as part of an automation which runs on a schedule, it appears to be failing with the error every few days

[WARNING] The type initializer for 'Renci.SshNet.Security.Chaos.NaCl.Internal.Ed25519Ref10.LookupTables' threw an exception.

It's not a big deal since it retries later but we wondered if you could supply additional information on what might cause this?

Unfortunately its not an easy to replicate issue so at this stage I don't have any further information on it.

ghost avatar Oct 04 '23 23:10 ghost

That is an error that I had not seen before. What is the target for the connection, host key algorithms and configured ciphers?

darkoperator avatar Oct 05 '23 11:10 darkoperator

The only other information I could get is that the Fingerprint matched trusted ssh-ed25519

I dont have any information on the target unfortunately, this is how it is called though, building a secure string previously and calling New-Object with System.Management.Automation.PSCredential

$session = New-SFTPSession -Computername 'external.host.example.com' -Credential $cred -AcceptKey:$true -ErrorAction Stop -Verbose

jacks16384 avatar Oct 05 '23 22:10 jacks16384