Delen via


Az.Ssh Module

Dit is een preview-module. Preview-modules worden niet aanbevolen voor gebruik in productieomgevingen. Zie voor meer informatie.

Met deze module kunt u een interactieve shellverbinding maken met Azure resources, zoals Azure VM's of Arc-servers, met behulp van SSH (Secure Shell). De verbinding kan tot stand worden gebracht met behulp van Microsoft Entra-accounts of lokale computeraccounts. Houd er rekening mee dat voor deze module OpenSSH moet worden geïnstalleerd en gedetecteerd op de clientcomputer. Belangrijke opmerking: als u verbinding maakt met Azure Arc resources, moet de Az.Ssh.ArcProxy-module ook op de clientcomputer worden geïnstalleerd. De cmdlets proberen de module te installeren vanuit de PowerShell Gallery, maar de gebruiker heeft ook de mogelijkheid om deze zelf te installeren. Het is belangrijk dat de gebruiker ook gemachtigd is om de proxybestanden uit te voeren in de Az.Ssh.ArcProxy-module, anders mislukt de verbinding. U vindt de Module Az.Ssh.ArcServer in de PowerShell Gallery: https://aka.ms/PowerShellGallery-Az.Ssh.ArcProxy.

SSH

Cmdlet Description
Enter-AzVM

Starts an interactive SSH session to an Azure Resource (such as Azure VMs or Arc Servers). Users can login using Microsoft Entra accounts, or local user accounts via standard SSH authentication. Use Microsoft Entra account login for the best security and convenience.

Export-AzSshConfig

This cmdlet exports an SSH configuration file that can be used to connect to Azure Resources through client applications that support OpenSSH config and certificates. SSH config files can be created that use Microsoft Entra ID issued certificates or local user credentials.