简体   繁体   English

如何连接到没有公共 IP 地址的 IBM Cloud 虚拟服务器实例?

[英]How can I connect to IBM Cloud virtual server instances that have no public IP addresses?

In IBM Cloud, I have provisioned a VPC, a subnet and a virtual server instance.在 IBM Cloud 中,我供应了一个 VPC、一个子网和一个虚拟服务器实例。 I have not assigned any floating IP to the virtual server instance and wondering how I can access this instance?我没有为虚拟服务器实例分配任何浮动 IP 并且想知道如何访问该实例? Is there any VPN or console I could use?我可以使用任何 VPN 或控制台吗?

  1. If your instance has no public IP address and you do not plan to create any other virtual server instance, you can use the VNC or serial consoles as described in the documentation .如果您的实例没有公共 IP 地址并且您不打算创建任何其他虚拟服务器实例,则可以使用文档中所述的VNC 或串行控制台

  2. Another option is to set up a bastion host in your VPC.另一种选择是在您的 VPC 中设置堡垒主机 You would use this bastion host as a jump server to access the private server instances.您将使用此堡垒主机作为跳转服务器来访问私有服务器实例。 Typically you would only turn on this bastion host when you need to perform maintenance on the servers and turn it off once you are done.通常,只有在需要对服务器执行维护时才打开此堡垒主机,并在完成后将其关闭。 This tutorial walks you through the steps of creating and configuring a bastion host. 本教程将引导您完成创建和配置堡垒主机的步骤。

  3. A third option could be to deploy a client-to-site VPN software on this bastion host so that you could directly access your private instances from your local machine without having to use SSH.第三种选择可能是在此堡垒主机上部署客户端到站点 VPN 软件,以便您可以直接从本地计算机访问私有实例,而无需使用 SSH。 This blog post describes this solution and provides a Terraform sample to easily deploy OpenVPN into an existing VPC environment. 这篇博文描述了这个解决方案,并提供了一个 Terraform 示例,以便轻松地将 OpenVPN 部署到现有的 VPC 环境中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM