我已经成功设置了通过 Windows 10 可选功能部分运行的 OpenSSH 服务器和客户端。
每当我尝试登录服务器时,系统都会要求我输入密码。我只为我的 Windows 10 PC 配置了一个密码,即我的 Microsoft 帐户的密码。但是,服务器拒绝使用该密码进行访问。我还没有为 SSH 服务器设置任何密码。
服务器的默认密码是什么?
sshd_config以下是文件夹中文件的内容%PROGRAMDATA%\ssh\:
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# 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
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey …Run Code Online (Sandbox Code Playgroud)