【问题标题】:Cannot SSH into Azure Windows Server VM无法通过 SSH 连接到 Azure Windows Server VM
【发布时间】:2020-02-04 04:09:15
【问题描述】:

我在 Azure 中创建了一个新的虚拟机。 (Windows Server 2016 数据中心服务器核心)

VM 创建过程允许我启用 SSH 访问(我确实做到了): Image of VM Creation Wizard

但是我发现自己无法与 Windows Server 建立 SSH 连接。

我了解到,在这种情况下,有时需要重置“配置密码”: "Reset Password" for VM

此操作使我能够成功使用“连接故障排除”工具(Azure 内置)“暂存”SSH 连接(从我的 IP 到 Azure VM)。但是我仍然发现自己无法建立 SSH 连接。 (连接继续“超时”。)

Image of Inbound Network Rules

Image of Azure "Connection troubleshooter"

有什么想法吗?

【问题讨论】:

  • 这台服务器上似乎没有(当前)安装 SSH 服务器服务。我在安装服务时遇到了困难。 imgur.com/a/Yvyyuco

标签: windows azure ssh virtual-machine


【解决方案1】:

我必须按照以下说明手动安装 sshd 服务: https://365adviser.com/powershell/install-use-openssh-windows-powershell-core-remoting-via-ssh/

值得注意的是,第 2 步指的是一个折旧的 GitHub 项目。因此,我需要调整 URI。我还需要附加 -UseBasicParsing 选项。这是最终结果:

Invoke-WebRequest -Uri http://mengelsen.000webhostapp.com/shared-items/OpenSSH-Win64.zip -UseBasicParsing -OutFile openssh.zip

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-15
    • 1970-01-01
    • 1970-01-01
    • 2017-12-04
    • 1970-01-01
    • 2013-07-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多