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

  Рет қаралды 64,262

Tony Teaches Tech

Tony Teaches Tech

Күн бұрын

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 tonyteaches.tech
Check out my vlog channel ‪@TonyFlorida‬

Пікірлер: 76
@kevinw6237
@kevinw6237 Жыл бұрын
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
@DerekPigott
@DerekPigott 7 ай бұрын
I followed your process but when it asked me for my password I got this Permission denied, please try again
@SalimDziriIMBUS
@SalimDziriIMBUS 28 күн бұрын
i used host port 2222 in vm settings then ssh -p 2222 user@localhost
@filippocaregnato4098
@filippocaregnato4098 21 күн бұрын
The error is probably in the host name, I had the same problem but you have to make sure it's the same host and not the machine name
@HumayunAli-i5e
@HumayunAli-i5e Жыл бұрын
You're the best bro, you make really focused and accurate content without any other extra stuff, keep the good work up
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
I appreciate that!
@WalidCostandi
@WalidCostandi Жыл бұрын
Good tip on port forwarding setting on the VM itself.
@RobertoDeMontecarlo
@RobertoDeMontecarlo Жыл бұрын
Great video Tony! I did not know about that headless mode and the port forwarding! Nice!
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Glad to help!
@matricebecker2870
@matricebecker2870 Жыл бұрын
Your tutorials are so well paced and edited. Really learning from your videos.
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Awesome, thank you!
@AdeMonst
@AdeMonst Жыл бұрын
@@TonyTeachesTech Could you teach how to install a web server on the ubuntu and have access to it anywhere in the world... just like using Vultr but instead doing it locally
@joshallen5168
@joshallen5168 8 ай бұрын
This is exactly what I was looking for, good job man
@TheTimeProphet
@TheTimeProphet 6 ай бұрын
Thankyou. Best tutorial I have found. I intend to run a plex server on Ubuntu. Just trying it out locally first.
@codingman8056
@codingman8056 Жыл бұрын
Helpful tutorial tony, i have been looking for exact same thing for few days, you did save my time
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Glad it helped
@truehiddenb
@truehiddenb Жыл бұрын
this tutorial was a real pleasure to watch lol
@pabloripoll
@pabloripoll Жыл бұрын
Hi Tony, great tutorial! Thanks!
@rezwan_
@rezwan_ Жыл бұрын
I love absolutely it! Thanks Tony!!! Also can you make a tutorial on Cloudflare's email routing to send and receive emails?
@jack_in_taiwan
@jack_in_taiwan 11 ай бұрын
👍🏼 Good job and many thanks. From Jack in Taiwan,
@TonyTeachesTech
@TonyTeachesTech 11 ай бұрын
Thank you too!
@jamez2022
@jamez2022 3 ай бұрын
Thank you, good tutorial easy to follow. liked
@tecfan-ix2tj
@tecfan-ix2tj Жыл бұрын
well done there my friend. is there any significant difference with virt manager?
@leumas_tai
@leumas_tai 3 ай бұрын
you literally just saved my day. I've been using the IP addr of the VM rather than localhost. thanks. Is there a way I can use the VM IP rather than localhost?
@andrebetancourt8830
@andrebetancourt8830 Жыл бұрын
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
@P3kkhyu
@P3kkhyu 5 ай бұрын
Same error. Anyone fix it?
@safatkhan676
@safatkhan676 2 ай бұрын
For those of you who cannot connect via SSH even after portforwarding, just change the HOST PORT to anything other than 22. It should work.
@safatkhan676
@safatkhan676 2 ай бұрын
For those of you who cannot connect via SSH even after portforwarding, just change the HOST PORT to anything other than 22. It should work.
@Lenovo-w6p
@Lenovo-w6p Ай бұрын
It sounds like you’re trying to start the SSH service but encountering an issue where sshd.service cannot be found. Here are a few steps you can try to resolve this: Check the Service Name: Sometimes, the service might be named ssh instead of sshd. You can check for available services with: systemctl -l --type service --all | grep ssh If you find a service named ssh, try starting it with: sudo systemctl start ssh Install OpenSSH Server: If the service is not installed, you can install it using: sudo apt-get update sudo apt-get install openssh-server Enable and Start the Service: Once installed, enable and start the service with: sudo systemctl enable ssh sudo systemctl start ssh Check Service Status: Verify the status of the service to ensure it’s running: systemctl status ssh If these steps don’t resolve the issue, you might need to reinstall the OpenSSH server: sudo apt-get remove --purge openssh-server sudo apt-get update sudo apt-get install openssh-server
@forinda
@forinda Жыл бұрын
Thank you. I had this problem of localhost ssh
@CHAYKA4
@CHAYKA4 Ай бұрын
If u get premission denied switch your network adapter to bridged adapter and then u can connect to it by ip via ssh
@recklessvelociraptor2579
@recklessvelociraptor2579 8 ай бұрын
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?
@DerekPigott
@DerekPigott 7 ай бұрын
I followed your precise, but when it asked for my password on my terminal, it said this Permission denied; please try again
@MamaMia84oo7
@MamaMia84oo7 Жыл бұрын
What are your thoughts on InMotion Hosting ?
@LekkyDev
@LekkyDev 8 ай бұрын
how did you fix the ssh connection error? did you delete the known_hosts file?
@isljack3117
@isljack3117 6 ай бұрын
but how to set my own resolution (1920x1080)? It's not so convenient to work in 800x600
@ragibshahriar5875
@ragibshahriar5875 6 ай бұрын
Great tutorial! thanks a lot!!!!!!!!!!
@TonyTeachesTech
@TonyTeachesTech 6 ай бұрын
You're welcome!
@nitrogenius
@nitrogenius 6 ай бұрын
if you stil get connection refused message check your windows firewall settings or another app that using port 22. For me it was xamp
@BharatRamnanan
@BharatRamnanan Жыл бұрын
Good Day Tony, I need your assistance please. Is it possible for me to install aapanel on Ubuntu running on a VitualBox...? If yes I will need to guide me thru the processing like what and what will like again because I have installed Ubuntu on VirtualBox thanks
@rosenvalentinov249
@rosenvalentinov249 Жыл бұрын
Hello, can you tell me how to make outside ssh connect to this virtual server ?
@fabianoone
@fabianoone 9 ай бұрын
Maaaaannnnnnn!!! you save me!!! So many thanks!
@TonyTeachesTech
@TonyTeachesTech 9 ай бұрын
You're welcome!
@Javaman92
@Javaman92 4 ай бұрын
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.
@hattieteachesCS
@hattieteachesCS 8 ай бұрын
Thank you for this video
@sss-bbb
@sss-bbb 5 ай бұрын
Well Done Boss
@pjj7466
@pjj7466 Жыл бұрын
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.
@TonyTeachesTech
@TonyTeachesTech Жыл бұрын
Sure thing :)
@Mr.Daya_Dee
@Mr.Daya_Dee Ай бұрын
I'm getting "Permission denied, please try again" Please provide solution
@omo.tstarboy3690
@omo.tstarboy3690 Жыл бұрын
The volume is not coming out... I can't hear anything... I'm I the only one ?
@Codebyakshay
@Codebyakshay 7 ай бұрын
can u also teach us how to point A Record of domain to that ubuntu server?
@TonyTeachesTech
@TonyTeachesTech 7 ай бұрын
Check this out kzbin.info/www/bejne/h5Sxc3-JiNNrjMk
@MrVitaliyAT
@MrVitaliyAT Жыл бұрын
Try login to server trough Putty and got: "No supported authentication methods available (server sent: publickey)"
@25kwame
@25kwame 11 ай бұрын
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 ?
@vedantvaideswar850
@vedantvaideswar850 4 ай бұрын
I also get same thing
@tonyd6853
@tonyd6853 9 ай бұрын
Are you on an intel mac in 2023?
@anuragshukla-tn3ux
@anuragshukla-tn3ux 5 ай бұрын
Is there any way to access that VM from another machine ?
@vladimirnicolescu1342
@vladimirnicolescu1342 5 ай бұрын
Using the SSH key of the VM or the IP adress. Accesssing it from another machine is pretty much the whole point of the system. Managing a server remotely 👍🏻
@Creative_vibes254
@Creative_vibes254 6 ай бұрын
Thank you 😊
@jimmysindia
@jimmysindia 23 күн бұрын
thanks dear
@alejandoramirez4510
@alejandoramirez4510 Жыл бұрын
Bravo tony
@kocahmet1
@kocahmet1 Жыл бұрын
great stuff
@InfernoTRH
@InfernoTRH 3 ай бұрын
Thank you
@idk-gv2my
@idk-gv2my 2 ай бұрын
3:45 personal link
@besbesyassin
@besbesyassin Жыл бұрын
thks☺
@KomentarSaya
@KomentarSaya 8 ай бұрын
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.
@KomentarSaya
@KomentarSaya 8 ай бұрын
ssh jammy@localhost Permission denied, please try again.
@joelson091
@joelson091 8 ай бұрын
Thanks
@safatkhan676
@safatkhan676 2 ай бұрын
For those of you who cannot connect via SSH even after portforwarding, just change the HOST PORT to anything other than 22. It should work.
@marcelohx
@marcelohx 9 ай бұрын
THAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANKS
@ahmetdurgut9953
@ahmetdurgut9953 10 ай бұрын
daşşağını yerim beni büyük bir dertten kurtardın
@shrimantmore7765
@shrimantmore7765 6 ай бұрын
Thanks
@TonyTeachesTech
@TonyTeachesTech 6 ай бұрын
Welcome
Install Ubuntu Server 22.04 LTS in Virtual Box; Connect with SSH
22:12
How to SSH into VirtualBox machine
7:29
Average Linux User
Рет қаралды 69 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 34 МЛН
怎么能插队呢!#火影忍者 #佐助 #家庭
00:12
火影忍者一家
Рет қаралды 45 МЛН
The $0 Home Server
16:53
Kalos Likes Computers
Рет қаралды 946 М.
How to Run an Ubuntu Server VM with VirtualBox
7:00
DevOps Thiago
Рет қаралды 81
Setting up a CHEAP and EASY Homelab Linux Server
16:28
TechHut
Рет қаралды 348 М.
EASY Budget Minecraft Servers With Crafty
37:22
Hardware Haven
Рет қаралды 871 М.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
NetworkChuck
Рет қаралды 1,6 МЛН
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 660 М.
Home Server Setup - Turn your old PC into a useful home server
23:55
Ubuntu Server: Getting started with a Linux Server
1:09:33
Byte My Pi
Рет қаралды 552 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН