长期读者,第一次提问。
我按照此答案中的说明进行操作:
如何通过 SSH 连接到“Windows 10 上的 Ubuntu 上的 Bash”?
我正在尝试在同一台机器上的 Windows 中从 PuTTY 进行 SSH。使用与我的配置文件匹配的端口 22。尝试了 127.0.0.1 和 127.0.1.1。但是,我仍然收到“拒绝访问”的消息:
最终我希望建立一个 Visual Studio 远程构建,但到目前为止我根本无法远程进入。我应该采取哪些后续步骤?
Process Hacker 为端口 22 显示了这一点(不确定这意味着什么):
以下是 /etc/ssh/sshd_config 的内容:
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey …
Run Code Online (Sandbox Code Playgroud)