๐ฌConnecting via SSH
If we want to connect via SSH we must close the machine and go to settings.

Once there we will click on
Network
, click onAdvanced
so it shows more options, then we click onPort fowarding
.

Click on the emoji for adding a new rule.

Lastly we will add the
4242
port to host and client. The IP's are not required. We will click accept so changes can be saved.

Sometimes a connection issue can occur if the ports are the same. It would be better if they are different, like 4241 : 4242
To connect via SSH from our machine to the virtual machine, use the command
ssh <user>@localhost -p 4241
It will ask for the password of the user that we are trying to log in with. Once the password is entered, it will show our login in green, which means that the connection has been successful.
Last updated
Was this helpful?