Apps->Manage optional features 面板就可以看到:
运行 OpenSSH Server 的 Windows 系统的注册表中添加一个配置项,注册表路径为 HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH,项的名称为 DefaultShell,项的值为 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe。我们可以以管理员身份启动 PowerShell,然后执行下面的命令完成注册表项的添加:
> New-ItemProperty -Path -Name DefaultShell -Value -PropertyType String -Force
>
>> mkdir .ssh
echo > > .ssh\authorized_keys