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服务
最新推荐文章于 2025-09-10 14:01:01 发布
本文介绍如何使用PowerShell命令行工具安装并配置OpenSSH服务器。通过运行特定的PowerShell指令,可以实现OpenSSH服务器的在线安装、启动服务、设置自动启动及指定默认shell。
3871

被折叠的 条评论
为什么被折叠?



