Windows 10 最近添加了 OpenSSH 作为可选的 Windows 功能。我找到了配置文件 C:\Windows\System32\OpenSSH\sshd_config 并给了自己修改它的权利。
这是我的文件:
# $OpenBSD: sshd_config,v 1.84 2011/05/23 03:30:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22 …Run Code Online (Sandbox Code Playgroud)