Share via


SshKeyPair Class

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

Constructor

SshKeyPair(*args: Any, **kwargs: Any)

Variables

Name Description
public_key
str

SSH public key.

private_key
str

SSH private key.

Attributes

private_key

SSH private key.

private_key: str | None

public_key

SSH public key.

public_key: str | None