你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.ConnectedNetwork.Models.Api20210501.SshPublicKeyTypeConverter))]
public class SshPublicKey : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.ISshPublicKey
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.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.ConnectedNetwork.Models.Api20210501.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