Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0;
Start-Service sshd;
Set-Service -Name sshd -StartupType 'Automatic';
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force;
使用Powershell启动OpenSSH服务
最新推荐文章于 2024-06-10 11:38:04 发布