小编mig*_*rin的帖子

如何在 Azure Windows VM 中启用 SSH?

我需要将 Windows 机器用于只能在 Windows 上运行的程序。我在 Azure 上设置了一个 Windows 10 虚拟机。在 Azure 门户的虚拟机下Connection,我看到了 RDP 的详细信息,它可以与应用商店中的 Microsoft 远程桌面应用一起使用。

我也想用SSH连接。单击 RDP 旁边的项目,我看到:

Ensure you have read-only access to the private key.
chmod 400 <name>.pem
Run Code Online (Sandbox Code Playgroud)

没有任何指示在哪里下载或上传该密钥。

我在下面在Azure门户打开22端口这些方向,我也跟随的PowerShell的部分安装OpenSSH服务器这些方向,包括启动服务:

> Set-Service -Name sshd -StartupType 'Automatic'
> Get-NetFirewallRule -Name *ssh*

Name                  : OpenSSH-Server-In-TCP
DisplayName           : OpenSSH SSH Server (sshd)
Description           : Inbound rule for OpenSSH SSH Server (sshd)
DisplayGroup          : OpenSSH Server
Group                 : OpenSSH Server
Enabled               : True
Run Code Online (Sandbox Code Playgroud)

在我的本地机器上,SSH 超时到虚拟机的公共 …

ssh virtual-machines azure

5
推荐指数
1
解决办法
4297
查看次数

域重定向中的 SSL 证书错误

我正在管理两个域名,并希望将一个域名重定向到另一个域名。我设置了一个域转发,其中包含从域 S(源)到域 T(目标)的 301 永久重定向。域 T 上的服务器将所有 HTTP 重定向到 HTTPS。如果我访问 ,浏览器将被重定向http://<domain-S>

如果我访问https://<domain-S>(注意 TLS 的 S),我会看到:

Firefox detected a potential security threat and did not continue to <domain-S>.  ...

Firefox does not trust this site because it uses a certificate that is not valid for <domain-S>. The certificate is only valid for the following names: shortener.secureserver.net, www.shortener.secureserver.net

Error code: SSL_ERROR_BAD_CERT_DOMAIN
Run Code Online (Sandbox Code Playgroud)

请注意,HTTPS 配置适用于<domain-T>. 我认为问题在于https://<domain-T>正在为 提供SSL 证书https://<domain-S>

如何在提供证书之前重定向域?

domain-name-system ssl redirect 301-redirect

3
推荐指数
1
解决办法
1万
查看次数