Share via


SshPublicKey Class

Definition

Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.SshPublicKeyTypeConverter))]
public class SshPublicKey : Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshPublicKey
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.SshPublicKeyTypeConverter))>]
type SshPublicKey = class
    interface ISshPublicKey
    interface IJsonSerializable
Public Class SshPublicKey
Implements ISshPublicKey
Inheritance
SshPublicKey
Attributes
Implements

Constructors

SshPublicKey()

Creates an new SshPublicKey instance.

Properties

KeyData
Path

Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SshPublicKey.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SshPublicKey.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.StackHCIVM.Models.ISshPublicKey.

FromJsonString(String)

Creates a new instance of SshPublicKey, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SshPublicKey into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to