[SDK reference](../../index.md) / [Models](../index.md) / [Compute](index.md)

# SshKey

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Compute`  

A saved SSH public key (imported, or generated by the platform whose private key was shown once and is never stored). Weak keys are refused:ssh-dss, and RSA under 3072 bits. A VM that names the key gets the key line at creation; later changes to the key (an expiry, a delete)do not reach VMs that already have it, because the key line is copied into the VM (the response says so on delete).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Compute.SshKey_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `Bits` | `int?` | `bits` | The size of the key in bits (the modulus of an RSA key, the curve of an ECDSA key, 256 for ed25519). |
| `Comment` | `string?` | `comment` | The key's comment: the one given, or the one at the end of the key line; may be empty. At most 128 characters. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `ExpireTime` | `DateTimeOffset?` | `expireTime` | After this time the key cannot be named by a new VM or template. VMs that already have it keep it. At most 10 years ahead. |
| `Expired` | `bool?` | `expired` | True once `expireTime` has passed. |
| `Fingerprint` | `string?` | `fingerprint` | `SHA256:` and the unpadded base64 digest of the key, as `ssh-keygen -l` and the guest's auth log print it. |
| `KeyType` | `string?` | `keyType` | The key type of the line, for example `ssh-ed25519`. |
| `Labels` | `Models.Compute.SshKey_labels?` | `labels` | At most 64. |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `Origin` | `Models.Compute.SshKey_origin?` | `origin` | IMPORTED for a key a person brought, GENERATED for one this API made (its private key was returned once, in the generate answer, and was not kept). |
| `PublicKey` | `string?` | `publicKey` | One OpenSSH public key line (`ssh-ed25519`, `ecdsa-sha2-nistp256\|384\|521`, `ssh-rsa` of 3072 bits or more, or an `sk-` type). A private key is refused. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
