From cc40ae47a73ef47fe223eb6a14e862f3a4a721c5 Mon Sep 17 00:00:00 2001 From: wxy Date: Tue, 2 Dec 2014 14:47:09 +0800 Subject: [PATCH] PUB:20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox @geekpi --- ...How to access a NAT guest from host with VirtualBox.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename {translated/tech => published}/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md (86%) diff --git a/translated/tech/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md b/published/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md similarity index 86% rename from translated/tech/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md rename to published/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md index 87032ce167..4b817c6536 100644 --- a/translated/tech/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md +++ b/published/20141125 Linux FAQs with Answers--How to access a NAT guest from host with VirtualBox.md @@ -1,8 +1,8 @@ -Linux 有问必答 -- 如何从VirtualBox中从主机访问NAT客户机 +Linux 有问必答:如何从VirtualBox中从主机访问NAT客户机 ================================================================================ -> **提问**: 我有一台运行在VirtualBox上的使用NAT的虚拟机。因此虚拟机会被VirtualBox分配一个私有IP地址(10.x.x.x)。如果我想要从主机SSH到虚拟机中,我该怎么做? +> **提问**: 我有一台运行在VirtualBox上的使用NAT的虚拟机,因此虚拟机会被VirtualBox分配一个私有IP地址(10.x.x.x)。如果我想要从主机SSH到虚拟机中,我该怎么做? -VirtualBox对虚拟机支持几种不同的网络方式,其中一种是NAT网络。当虚拟机启用NAT后,VirtualBox会自动在虚拟机和主机之间进行网络翻译,因此你不于必在虚拟机和主机之间配置任何东西。这也意味着NAT中的虚拟机对于外部网络以及主机本身是不可见的。这会在你想要从主机访问虚拟机时会产生问题(比如SSH)。 +VirtualBox对虚拟机支持几种不同的网络方式,其中一种是NAT网络。当虚拟机启用NAT后,VirtualBox会自动在虚拟机和主机之间进行网络翻译,因此你不必在虚拟机和主机之间配置任何东西。这也意味着NAT中的虚拟机对于外部网络以及主机本身是不可见的。这会在你想要从主机访问虚拟机时会产生问题(比如SSH)。 如果你想从VirtualBox的NAT环境的虚拟机,你可以在GUI或者命令行下启用VirtualBox NAT的端口转发。本篇教程将会演示**如何通过启用22端口转发而从主机SSH连接到NAT环境的客户机**。如果你先想要从HTTP访问NAT的客户机,用80端口代替22端口即可。 @@ -62,6 +62,6 @@ VirtualBox有一个称为VBoxManage的命令行管理工具。使用命令行工 via: http://ask.xmodulo.com/access-nat-guest-from-host-virtualbox.html 译者:[geekpi](https://github.com/geekpi) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出