Compartilhar via


ComputeInstanceSshSettings Class

Definition

Specifies policy and settings for SSH access.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.ComputeInstanceSshSettingsTypeConverter))]
public class ComputeInstanceSshSettings : Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.IComputeInstanceSshSettings
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.ComputeInstanceSshSettingsTypeConverter))>]
type ComputeInstanceSshSettings = class
    interface IComputeInstanceSshSettings
    interface IJsonSerializable
Public Class ComputeInstanceSshSettings
Implements IComputeInstanceSshSettings
Inheritance
ComputeInstanceSshSettings
Attributes
Implements

Constructors

ComputeInstanceSshSettings()

Creates an new ComputeInstanceSshSettings instance.

Properties

AdminPublicKey

Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.

AdminUserName

Describes the admin user name.

SshPort

Describes the port for connecting through SSH.

SshPublicAccess

State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ComputeInstanceSshSettings.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ComputeInstanceSshSettings.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.IComputeInstanceSshSettings.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ComputeInstanceSshSettings into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to