[英]Steps required to SSH into Azure Windows VM from a Linux VM
[英]Cannot SSH into Azure Windows Server VM
我在 Azure 中創建了一個新的虛擬機。 (Windows Server 2016 數據中心服務器核心)
VM 創建過程允許我啟用 SSH 訪問(我做到了): VM 創建向導的圖像
但是我發現自己無法與 Windows Server 建立 SSH 連接。
我了解到,在這種情況下,有時需要重置“配置密碼”: VM 的“重置密碼”
此操作使我能夠成功使用“連接疑難解答”工具(Azure 內置)“暫存”SSH 連接(從我的 IP 到 Azure VM)。 但是我仍然發現自己無法建立 SSH 連接。 (連接繼續“超時”。)
有任何想法嗎?
我必須按照這些說明手動安裝 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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.