{"id":2888,"date":"2025-03-22T00:14:08","date_gmt":"2025-03-22T00:14:08","guid":{"rendered":"https:\/\/w3buddy.com\/?p=2888"},"modified":"2026-01-15T13:10:32","modified_gmt":"2026-01-15T07:40:32","slug":"how-to-access-your-virtual-machine-on-virtualbox-using-mobaxterm","status":"publish","type":"post","link":"https:\/\/w3buddy.com\/blog\/how-to-access-your-virtual-machine-on-virtualbox-using-mobaxterm\/","title":{"rendered":"How to Access Your Virtual Machine on VirtualBox Using MobaXterm"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you\u2019re running a <strong>Linux-based Virtual Machine (VM)<\/strong> on VirtualBox and want to connect using <strong><a href=\"https:\/\/mobaxterm.mobatek.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">MobaXterm<\/a><\/strong>, you might face network issues. By default, VirtualBox uses <strong>NAT (Network Address Translation)<\/strong>, which doesn\u2019t allow direct SSH access from your host system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The solution? <strong>Port Forwarding<\/strong>! Follow these simple steps to establish an SSH connection easily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Watch this step-by-step tutorial on how to access your virtual machine on VirtualBox using MobaXterm before following the written guide.<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Access VirtualBox VM Using MobaXterm | W3Buddy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/3_eIndHh_8Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Configure Network Settings in VirtualBox<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your VM has an IP address like <strong>10.0.2.15<\/strong>, it\u2019s using <strong>NAT mode<\/strong>. To allow SSH access, we need to enable <strong>Port Forwarding<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to check your VM IP address:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enable Port Forwarding<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open VirtualBox<\/strong><\/li>\n\n\n\n<li>Select your <strong>VM<\/strong> \u2192 Click <strong>Settings<\/strong><\/li>\n\n\n\n<li>Go to the <strong>Network<\/strong> tab<\/li>\n\n\n\n<li>Under <strong>Adapter 1<\/strong>, ensure it is set to <strong>NAT<\/strong><\/li>\n\n\n\n<li>Click <strong>Advanced<\/strong> \u2192 Click <strong>Port Forwarding<\/strong><\/li>\n\n\n\n<li>Add a new rule with the following details:\n<ul class=\"wp-block-list\">\n<li><strong>Protocol:<\/strong> TCP <\/li>\n\n\n\n<li><strong>Host IP:<\/strong> 127.0.0.1 <\/li>\n\n\n\n<li><strong>Host Port:<\/strong> 2222 <\/li>\n\n\n\n<li><strong>Guest IP:<\/strong> (Leave blank or enter your VM\u2019s IP, e.g., 10.0.2.15) <\/li>\n\n\n\n<li><strong>Guest Port:<\/strong> 22 (for SSH)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click <strong>OK<\/strong> and restart your VM<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For your reference:<\/strong> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"425\" src=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-1024x425.png\" alt=\"\" class=\"wp-image-2891\" srcset=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-1024x425.png 1024w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-300x125.png 300w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-768x319.png 768w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-1536x637.png 1536w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-2048x850.png 2048w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-150x62.png 150w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"869\" height=\"596\" src=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-8.png\" alt=\"\" class=\"wp-image-2892\" srcset=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-8.png 869w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-300x206.png 300w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-768x527.png 768w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-150x103.png 150w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Connect to Your VM via MobaXterm<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that Port Forwarding is set up, let\u2019s connect using MobaXterm.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open MobaXterm<\/strong><\/li>\n\n\n\n<li>Click <strong>Session<\/strong> \u2192 Select <strong>SSH<\/strong><\/li>\n\n\n\n<li>In the <strong>Remote Host<\/strong> field, enter: 127.0.0.1<\/li>\n\n\n\n<li>Set Port to <strong>2222 <\/strong>(as configured in Port Forwarding)<\/li>\n\n\n\n<li>Enter your VM\u2019s username (e.g., oracle, ubuntu, root, etc.)<\/li>\n\n\n\n<li>Click OK to connect<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For your reference<\/strong>: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"590\" src=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-1024x590.png\" alt=\"\" class=\"wp-image-2893\" srcset=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-1024x590.png 1024w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-300x173.png 300w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-768x442.png 768w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-1536x885.png 1536w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-2048x1180.png 2048w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-150x86.png 150w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Test Your Connection<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once connected, run the following commands in MobaXterm\u2019s terminal:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">whoami\nip a<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If your VM responds, <strong>you\u2019re successfully connected!<\/strong> \ud83c\udf89<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For your reference<\/strong>: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-1024x375.png\" alt=\"\" class=\"wp-image-2895\" srcset=\"https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-1024x375.png 1024w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-300x110.png 300w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-768x281.png 768w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-1536x562.png 1536w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-2048x749.png 2048w, https:\/\/w3buddy.com\/blog\/wp-content\/uploads\/2025\/03\/image-11-150x55.png 150w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you can securely access and manage your VM using MobaXterm without any hassle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bonus Tip: Use SSH Keys for Easier Access<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Instead of entering your password every time, you can set up <strong>SSH keys<\/strong> for passwordless login, making access more secure and convenient.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check out this YouTube video to learn how to access your Virtual Machine on VirtualBox using MobaXterm.<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Access VirtualBox VM Using MobaXterm | W3Buddy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/3_eIndHh_8Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hope this guide helps! Let me know if you have any questions. \ud83d\ude80<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re running a Linux-based Virtual Machine (VM) on VirtualBox and want to connect using MobaXterm, you might face network issues. By default, VirtualBox uses NAT (Network Address Translation), which doesn\u2019t allow direct SSH access from your host system. The solution? Port Forwarding! Follow these simple steps to establish an SSH connection easily. Watch this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAowu461DA:productID":"","footnotes":""},"categories":[1225],"tags":[],"class_list":["post-2888","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts\/2888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/comments?post=2888"}],"version-history":[{"count":5,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts\/2888\/revisions"}],"predecessor-version":[{"id":2952,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/posts\/2888\/revisions\/2952"}],"wp:attachment":[{"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/media?parent=2888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/categories?post=2888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/w3buddy.com\/blog\/wp-json\/wp\/v2\/tags?post=2888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}