Show / Hide Table of Contents

    Class SshPublicKey

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

    Inheritance
    Object
    SshPublicKey
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class SshPublicKey

    Constructors

    SshPublicKey()

    Initializes a new instance of the SshPublicKey class.

    Declaration
    public SshPublicKey ();

    SshPublicKey(String, String)

    Initializes a new instance of the SshPublicKey class.

    Declaration
    public SshPublicKey (string path = null, string keyData = null);
    Parameters
    String 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

    String keyData

    SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure.

    Properties

    KeyData

    Gets or sets SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. &lt;br&gt;&lt;br&gt; For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="keyData")]
    public string KeyData { get; set; }
    Property Value
    String

    Path

    Gets or sets 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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="path")]
    public string Path { get; set; }
    Property Value
    String

    Back to top Azure SDK for Net