# 启用公钥登陆
PubkeyAuthentication yes
# administrator 用户同样使用 authorized_keys 进行免密登陆(默认是 __PROGRAMDATA__/ssh/administrators_authorized_keys)
Match Group administrators
AuthorizedKeysFile ~/.ssh/authorized_keys[root@Docker-host]# ssh
Microsoft Windows [版本 6.3.9600]
(c) 2013 Microsoft Corporation。保留所有权利。
administrator@DNS C:\Users\Administrator>exit
Connection to 10.10.50.6 closed.# 停掉 sshd
net stop sshd
# 手动启用 sshd,指定修改后的配置文件,开启 debug 记录
sshd.exe -f C:\ProgramData\ssh\sshd_config -d