安装OpenSSH for Windows
下面是在powershell中操作的命令记录 choco install powershell-core -y choco install openssh cd C:\Program Files\OpenSSH-Win64 Set-ExecutionPolicy RemoteSigned #设置默认shell为powershell .\Set-SSHDefaultShell.ps1 -PathSpecsToProbeForShellEXEString "\$env\:userprofile\downloads\*.exe;c:\Program Files\PowerShell\*\P\*.exe;c:\windows\system32\*" #配置认证用autho