sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
MIT License
3.87k stars 915 forks source link

Unable to connect chacha20-poly1305@openssh.com or GCM #1374

Closed safeerk closed 2 months ago

safeerk commented 2 months ago

Hi, For my project am in need to connect any of the below Ciphers: aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com

Am using the build SSH.Net 2024.0.0 nuget package; which am unable to connect;

Below is the console log am getting: "Client encryption algorithm not found" at Renci.SshNet.Security.KeyExchange.Start(Session session, KeyExchangeInitMessage message, Boolean sendClientInitMessage) at Renci.SshNet.Security.KeyExchangeEC.Start(Session session, KeyExchangeInitMessage message, Boolean sendClientInitMessage) at Renci.SshNet.Security.KeyExchangeECCurve25519.Start(Session session, KeyExchangeInitMessage message, Boolean sendClientInitMessage) at Renci.SshNet.Session.OnKeyExchangeInitReceived(KeyExchangeInitMessage message) at Renci.SshNet.Messages.Transport.KeyExchangeInitMessage.Process(Session session) at Renci.SshNet.Session.MessageListener() --- End of stack trace from previous location --- at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) at Renci.SshNet.Session.Connect() at Renci.SshNet.BaseClient.CreateAndConnectSession() at Renci.SshNet.BaseClient.Connect()

safeerk commented 2 months ago

1369 , Help to achieve the same.