[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eSshPublicKey\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.OsLogin.Common\u003c/code\u003e namespace, which is part of the Google Cloud OS Login .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSshPublicKey\u003c/code\u003e class represents the SSH public key information associated with a Google account, which includes properties like expiration time, fingerprint, public key text, and canonical resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSshPublicKey\u003c/code\u003e class is version 3.3.0, with previous versions ranging from 3.2.0 down to 2.2.0 also available in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSshPublicKey\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and it has two constructors, one default, and one with parameters to copy another \u003ccode\u003eSshPublicKey\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation displays the public properties of the \u003ccode\u003eSshPublicKey\u003c/code\u003e class, detailing each property's name, type, purpose, and how it is used in the context of SSH key management.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.OsLogin.Common - Class SshPublicKey (3.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKey)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.2.0/Google.Cloud.OsLogin.Common.SshPublicKey)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.1.0/Google.Cloud.OsLogin.Common.SshPublicKey)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/3.0.0/Google.Cloud.OsLogin.Common.SshPublicKey)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/2.3.0/Google.Cloud.OsLogin.Common.SshPublicKey)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/2.2.0/Google.Cloud.OsLogin.Common.SshPublicKey) \n\n public sealed class SshPublicKey : IMessage\u003cSshPublicKey\u003e, IEquatable\u003cSshPublicKey\u003e, IDeepCloneable\u003cSshPublicKey\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google.Cloud.OsLogin.Common class SshPublicKey.\n\nThe SSH public key information associated with a Google account. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SshPublicKey \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SshPublicKey](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKey), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SshPublicKey](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKey), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SshPublicKey](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKey), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsLogin.Common](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.OsLogin.Common.dll\n\nConstructors\n------------\n\n### SshPublicKey()\n\n public SshPublicKey()\n\n### SshPublicKey(SshPublicKey)\n\n public SshPublicKey(SshPublicKey other)\n\nProperties\n----------\n\n### ExpirationTimeUsec\n\n public long ExpirationTimeUsec { get; set; }\n\nAn expiration time in microseconds since epoch.\n\n### Fingerprint\n\n public string Fingerprint { get; set; }\n\nOutput only. The SHA-256 fingerprint of the SSH public key.\n\n### Key\n\n public string Key { get; set; }\n\nPublic key text in SSH format, defined by\n\\\u003ca href=\"\u003chttps://www.ietf.org/rfc/rfc4253.txt\u003e\" target=\"_blank\"\\\u003eRFC4253\\\u003c/a\\\u003e\nsection 6.6.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. The canonical resource name.\n\n### SshPublicKeyName\n\n public SshPublicKeyName SshPublicKeyName { get; set; }\n\n[SshPublicKeyName](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKeyName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsLogin.Common/latest/Google.Cloud.OsLogin.Common.SshPublicKey#Google_Cloud_OsLogin_Common_SshPublicKey_Name) resource name property."]]