diff --git a/src/Renci.SshNet/PrivateKeyFile.cs b/src/Renci.SshNet/PrivateKeyFile.cs index 414bcfcd..23a6157f 100644 --- a/src/Renci.SshNet/PrivateKeyFile.cs +++ b/src/Renci.SshNet/PrivateKeyFile.cs @@ -472,7 +472,7 @@ namespace Renci.SshNet } 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)); } /*