Cant ssh into RHEL7 on Virtualbox guest from mac

Latest response

Cant ssh into RHEL7 on Virtualbox guest from mac

Can someone please help with this

Responses

ssh enabled ? Virtualbox Networking setup functional? ... Please provide more information.

Hi ! :)

First, please make sure that the packages openssh, openssh-server and openssh-clients are installed in the RHEL 7 virtual system - normally this should be the case, because they are getting installed automatically when installing the operating system. In the virtual system open a terminal and execute : ifconfig - the output gives you the IP address of the virtual system. On the host machine open a terminal and execute : ssh <user>@<IP-address-of-the-virtual-system> or use a GUI application which provides the ssh access of guest machines - of course ssh functionality must be available (installed and enabled) on the host machine. Well, this information is about how everything basically works ... unfortunately you didn't provide more comprehensive information, so anything else would be kinda guessing.

Cheers :)
Christian

What's the "Attached to:" setting of the guest's network adapter in Virtualbox?

If it is "NAT", then the guest's outgoing connections use the host's IP as the source address - so inbound connections to the guest are not possible, unless a port forwarding rule is defined in VirtualBox NAT network preferences. It may be a bit surprising that this is true for connections from the host to the guest too!

The port forwarding rules are hidden relatively deep: from the VirtualBox Manager main window, File -> Preferences... -> Network -> NAT Networks tab -> select the NAT network and click the screwdriver icon on the right edge of the dialog to edit the network definition -> click on Port Forwarding to reach the Port Forwarding Rules dialog.

Alternatively, you might define a host-only network (File -> Preferences... -> Network -> Host-only Networks tab, if one was not auto-created when Virtualbox was installed) and add a second virtual NIC to your guest attached to that host-only network.

I had to change it to bridged to get it to work

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.