Linux serverlinux web serverNETWORK ADMINISTRATIONS

How to Run an Ubuntu Server VM with VirtualBox (and login via SSH)

Learn how to install and run an Ubuntu server VM (virtual machine) in VirtualBox. Also we will learn to login to the VM via SSH in headless mode. This tutorial will work on any computer (Mac, Windows, Linux) with sufficient systems resources.

Find more at https://tonyteaches.tech
Check out my vlog channel @TonyFlorida

source

by Tony Teaches Tech

linux web server

40 thoughts on “How to Run an Ubuntu Server VM with VirtualBox (and login via SSH)

  • I figured out everything except when I go to ssh into the server from my Ubuntu desktop I get Permission denied, please try again. That I have not figured out yet.

  • i keep getting this error……………………vagrant@localhost: Permission denied (publickey).
    how do i go about it?

  • if you stil get connection refused message check your windows firewall settings or another app that using port 22. For me it was xamp

  • Thankyou. Best tutorial I have found. I intend to run a plex server on Ubuntu. Just trying it out locally first.

  • but how to set my own resolution (1920×1080)? It's not so convenient to work in 800×600

  • I followed your process but when it asked me for my password I got this Permission denied, please try again

  • I followed your precise, but when it asked for my password on my terminal, it said this Permission denied; please try again

  • can u also teach us how to point A Record of domain to that ubuntu server?

  • still cannot login using ssh, may you show your /etc/hosts sir ?
    1 name = jammy
    2 server name = jellyfish
    3 username = jammy
    4 password = jammy

    ssh jammy@jellyfish
    Permission denied, please try again.

  • how did you fix the ssh connection error?
    did you delete the known_hosts file?

  • and how can i make it so I can connect to it from my notebook which connected via wifi to the same network in which pc with virutal machine is?

  • minute 5.45 I have Cancel update and Reboot instead of Reboot now. When I choose that, it enters in "Rebooting" infinitly. Any idea to solve it ?

  • Thank you. I had this problem of localhost ssh

  • I need something similar my friend using oracle-Ubuntu to make a private vpn please ill pay you for your time thanks with Putty too

  • I have the problem that I followed all the steps in the video, but when I try to connect via ssh I get the error ssh: connect to host localhost port 22: Connection refused. I configured the network part the same with port 22

  • well done there my friend. is there any significant difference with virt manager?

  • Thank you so much for this clear and easy-to-follow video! I followed your installation steps and successfully forwarded the guest port 22 to another port on host

  • Try login to server trough Putty and got: "No supported authentication methods available (server sent: publickey)"

  • I've always wondered how people run virtual servers on their Windows laptops using VirtualBox. However, when I tried the same, I ended up with the Ubuntu GUI interface. Today, I found out that I should have chosen the Ubuntu Server version instead of Ubuntu Desktop.

    😂 How foolish of me. Thanks, mate.

Comments are closed.