从 Linux VM SSH 到 Azure Windows VM 所需的步骤

Steps required to SSH into Azure Windows VM from a Linux VM

已创建 Windows Azure VM 并分别为入站 RDP 和 SSH 连接打开端口 3389 和 22。

我可以从远程 Windows PC 通过 RDP 成功连接到虚拟机。 在门户中测试 SSH 连接成功。但是尝试使用 SSH 从远程 Linux 虚拟机连接失败。

鉴于门户内的 SSH 连接测试成功,这表明 (1) 可以通过 SSH 连接到 windows 虚拟机; (2) 服务器上不需要其他配置,即安装 OpenSSH(或类似的)/将密钥文件复制到某个位置等。但是,Azure 门户中的帮助步骤适用于我的 Windows VM ,为了建立远程 SSH 连接,建议服务器上可能需要一个 public 密钥,并且我需要我尝试连接的 LinuxVM 上的私钥。

请有人帮助我了解是否可以通过 ssh 进入 windows Azure VM,如果可以,要求/最少步骤集(在目标 Windows VM 和源 Linux VM) 我需要进入可以成功 SSH 的状态。

其他类似问题的帖子没有帮助我通过 ssh 连接。我没有在 Microsoft 文档中找到 'golden source of truth'。也许我错过了。

谢谢。

A Windows 服务器通常不会预先构建并准备好使用 SSH 访问,它需要一些设置。你可以关注this to set up your Azure VM for SSH access. You can configure SSH on a Windows Azure VM for access, check out How to Set Up OpenSSH on a Windows Server。部署 OpenSSH 后,您可以在 Linux 客户端上的 Azure 门户中按照有关 通过 SSH 与客户端 连接的步骤进行操作,以通过 SSH 访问该 Windows VM。