Red de conocimiento informático - Material del sitio web - Cómo usar Powershell para administrar servidores Linux de forma remota

Cómo usar Powershell para administrar servidores Linux de forma remota

#######Para win10 1809 o superior, puede ingresar sshd en CMD para conectarse directamente.

########2. Instale Powershell en el servidor Linux

Si hay una conexión a Internet, ejecute el siguiente comando

Hay no hay conexión a Internet en la intranet En el caso de PowerShell/PowerShell/releases/tag/v7.1.4

yum install powershell-7.1.4-1.rhel.7.x86_64.rpm

pwsh

systemctl reiniciar sshd

Enter-PSSession -HostName root@172.31.220.4 -SSHTransport