windows设置sshd的shell
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
设置完需要重启一下sshd
如果想用ssh-copyid, 需要把 c:/programData/ssh/sshd_config 最下面两行注释掉
#Match Group administrators
# AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
如果需要使用ssh-agent 连接到win server的sshd,暂不支持