HostKeyFile.cs 1.1 KB

1234567891011121314151617181920212223
  1. namespace Renci.SshNet.IntegrationTests
  2. {
  3. public sealed class HostKeyFile
  4. {
  5. public static readonly HostKeyFile Rsa = new HostKeyFile("ssh-rsa", "/etc/ssh/ssh_host_rsa_key", new byte[] { 0x3d, 0x90, 0xd8, 0x0d, 0xd5, 0xe0, 0xb6, 0x13, 0x42, 0x7c, 0x78, 0x1e, 0x19, 0xa3, 0x99, 0x2b });
  6. public static readonly HostKeyFile Dsa = new HostKeyFile("ssh-dsa", "/etc/ssh/ssh_host_dsa_key", new byte[] { 0x50, 0xe0, 0xd5, 0x11, 0xf7, 0xed, 0x54, 0x75, 0x0d, 0x03, 0xc6, 0x52, 0x9b, 0x3b, 0x3c, 0x9f });
  7. public static readonly HostKeyFile Ed25519 = new HostKeyFile("ssh-ed25519", "/etc/ssh/ssh_host_ed25519_key", new byte[] { 0xb3, 0xb9, 0xd0, 0x1b, 0x73, 0xc4, 0x60, 0xb4, 0xce, 0xed, 0x06, 0xf8, 0x58, 0x49, 0xa3, 0xda });
  8. public const string Ecdsa = "/etc/ssh/ssh_host_ecdsa_key";
  9. private HostKeyFile(string keyName, string filePath, byte[] fingerPrint)
  10. {
  11. KeyName = keyName;
  12. FilePath = filePath;
  13. FingerPrint = fingerPrint;
  14. }
  15. public string KeyName {get; }
  16. public string FilePath { get; }
  17. public byte[] FingerPrint { get; }
  18. }
  19. }