diff --git a/src/Renci.SshNet/PrivateKeyFile.cs b/src/Renci.SshNet/PrivateKeyFile.cs index 414bcfcd7..23a6157f6 100644 --- a/src/Renci.SshNet/PrivateKeyFile.cs +++ b/src/Renci.SshNet/PrivateKeyFile.cs @@ -472,7 +472,7 @@ private void Open(Stream privateKey, string? passPhrase) } else { - throw new SshException(string.Format("Cipher method '{0}' is not supported.", cipherName)); + throw new SshException(string.Format("Cipher method '{0}' is not supported.", ssh2CipherName)); } /*