{"id":451,"date":"2012-09-20T07:00:00","date_gmt":"2012-09-20T07:00:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2012\/09\/20\/ssh-ing-from-os-x-into-a-linux-on-a-local-vm-virtualbox\/"},"modified":"2012-09-20T07:00:00","modified_gmt":"2012-09-20T07:00:00","slug":"ssh-ing-from-os-x-into-a-linux-on-a-local-vm-virtualbox","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2012\/09\/20\/ssh-ing-from-os-x-into-a-linux-on-a-local-vm-virtualbox\/","title":{"rendered":"ssh-ing from OS X into a Linux on a local VM (VirtualBox)"},"content":{"rendered":"<p><\/p>\n<ul>\n<li>for the specific virtual machine: <i>Network Adapters<\/i> \/ <i>Port Forwarding<\/i> \/ add a rule like &#8220;Protocol=&gt;TCP, Host Port=&gt;2222, Guest Port=&gt;22, leave the IP addresses blank!&#8221;; the VirtualBox help system opens a nice and very instructive PDF manual, that really made me feel comfortable with this<\/li>\n<li>this way you should actually be able to &#8220;<i>ssh -p 2222 localhost<\/i>&#8221; on the host machine<\/li>\n<li>in my case this failed, complaining like this: &#8220;<i>port 2222: Connection refused<\/i>&#8220;<\/li>\n<li>it took me a while to reason, whether the guest OS really has an ethernet \/ LAN interface configured \u2013 and there wasn&#8217;t any such active interface \u2013 TBD<\/li>\n<\/ul>\n<div>\nTo be continued \u2026<\/p>\n<p>Update 2013-02-26:<br \/>\n&#8220;Bridged networking&#8221; looks superior to NAT, as things work far more easily \u2013 you don&#8217;t need to forwards ports (e.g. SSH), you can simply talk to the VM guests. I couldn&#8217;t get Samba working with NAT&#8217;s port forwarding, but with bridged networking &#8220;it&#8217;s just there&#8221; (what a joy!!!), and you can also have &#8220;natural&#8221; communication <b>amongst<\/b> the guests. Imagine: an Oracle DB within some VM \u2026<\/div>\n","protected":false},"excerpt":{"rendered":"<p>for the specific virtual machine: Network Adapters \/ Port Forwarding \/ add a rule like &#8220;Protocol=&gt;TCP, Host Port=&gt;2222, Guest Port=&gt;22, leave the IP addresses blank!&#8221;; the VirtualBox help system opens a nice and very instructive PDF manual, that really made me feel comfortable with this this way you should actually be able to &#8220;ssh -p [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666,688],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-virtualbox"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-7h","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}