The type initializer for 'Renci.SshNet.Security.Chaos.NaCl.Internal.Ed25519Ref10.LookupTables' threw an exception.
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.
That is an error that I had not seen before. What is the target for the connection, host key algorithms and configured ciphers?
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