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

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 77

  • @kevinw6237
    @kevinw6237 Рік тому +1

    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

  • @WalidCostandi
    @WalidCostandi Рік тому

    Good tip on port forwarding setting on the VM itself.

  • @TheTimeProphet
    @TheTimeProphet 7 місяців тому

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

  • @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

  • @DerekPigott
    @DerekPigott 8 місяців тому +7

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

    • @SalimDziriIMBUS
      @SalimDziriIMBUS 2 місяці тому

      i used host port 2222 in vm settings
      then ssh -p 2222 user@localhost

    • @filippocaregnato4098
      @filippocaregnato4098 Місяць тому

      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

  • @joshallen5168
    @joshallen5168 9 місяців тому

    This is exactly what I was looking for, good job man

  • @RobertoDeMontecarlo
    @RobertoDeMontecarlo Рік тому

    Great video Tony! I did not know about that headless mode and the port forwarding! Nice!

  • @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

  • @truehiddenb
    @truehiddenb Рік тому

    this tutorial was a real pleasure to watch lol

  • @codingman8056
    @codingman8056 Рік тому

    Helpful tutorial tony, i have been looking for exact same thing for few days, you did save my time

  • @jamez2022
    @jamez2022 5 місяців тому

    Thank you, good tutorial easy to follow. liked

  • @jack_in_taiwan
    @jack_in_taiwan Рік тому

    👍🏼 Good job and many thanks. From Jack in Taiwan,

  • @pabloripoll
    @pabloripoll Рік тому

    Hi Tony, great tutorial! Thanks!

  • @forinda
    @forinda Рік тому

    Thank you. I had this problem of localhost ssh

  • @rezwan_
    @rezwan_ Рік тому

    I love absolutely it! Thanks Tony!!! Also can you make a tutorial on Cloudflare's email routing to send and receive emails?

  • @alejandoramirez4510
    @alejandoramirez4510 Рік тому

    Bravo tony

  • @CHAYKA4
    @CHAYKA4 2 місяці тому +1

    If u get premission denied switch your network adapter to bridged adapter and then u can connect to it by ip via ssh

  • @fabianoone
    @fabianoone 10 місяців тому

    Maaaaannnnnnn!!! you save me!!! So many thanks!

  • @sss-bbb
    @sss-bbb 6 місяців тому

    Well Done Boss

  • @leumas_tai
    @leumas_tai 4 місяці тому

    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?

  • @ragibshahriar5875
    @ragibshahriar5875 8 місяців тому

    Great tutorial! thanks a lot!!!!!!!!!!

  • @besbesyassin
    @besbesyassin Рік тому +1

    thks☺

  • @HattiesAquariums
    @HattiesAquariums 9 місяців тому

    Thank you for this video

  • @jimmysindia
    @jimmysindia Місяць тому

    thanks dear

  • @InfernoTRH
    @InfernoTRH 4 місяці тому

    Thank you

  • @Creative_vibes254
    @Creative_vibes254 7 місяців тому

    Thank you 😊

  • @pjj7466
    @pjj7466 Рік тому +1

    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.

  • @kocahmet1
    @kocahmet1 Рік тому

    great stuff

  • @andrebetancourt8830
    @andrebetancourt8830 Рік тому +8

    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 6 місяців тому

      Same error. Anyone fix it?

    • @safatkhan676
      @safatkhan676 3 місяці тому

      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 3 місяці тому

      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 2 місяці тому

      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

  • @MamaMia84oo7
    @MamaMia84oo7 Рік тому

    What are your thoughts on InMotion Hosting ?

  • @joelson091
    @joelson091 9 місяців тому

    Thanks

  • @tecfan-ix2tj
    @tecfan-ix2tj Рік тому

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

  • @LekkyDev
    @LekkyDev 9 місяців тому

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

  • @recklessvelociraptor2579
    @recklessvelociraptor2579 9 місяців тому

    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?

  • @rosenvalentinov249
    @rosenvalentinov249 Рік тому

    Hello, can you tell me how to make outside ssh connect to this virtual server ?

  • @anthonyvilla9960
    @anthonyvilla9960 11 днів тому

    I keep getting connection timed out, when trying to connect to my virtual ubuntu server from Powershell. Any suggestions?? I do have ssh enabled on my Windows computer. I was able to connecto my linux ubuntu home server but for some reason I'm not able to connect to my Ubuntu VM Server.

  • @nitrogenius
    @nitrogenius 7 місяців тому

    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

  • @DerekPigott
    @DerekPigott 8 місяців тому +1

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

  • @Codebyakshay
    @Codebyakshay 8 місяців тому

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

    • @TonyTeachesTech
      @TonyTeachesTech  8 місяців тому

      Check this out ua-cam.com/video/QcNBLSSn8Vg/v-deo.html

  • @isljack3117
    @isljack3117 7 місяців тому

    but how to set my own resolution (1920x1080)? It's not so convenient to work in 800x600

  • @marcelohx
    @marcelohx 10 місяців тому

    THAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANKS

  • @idk-gv2my
    @idk-gv2my 3 місяці тому +1

    3:45 personal link

  • @MrVitaliyAT
    @MrVitaliyAT Рік тому

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

  • @25kwame
    @25kwame Рік тому

    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 ?

  • @Javaman92
    @Javaman92 5 місяців тому

    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.

  • @anuragshukla-tn3ux
    @anuragshukla-tn3ux 6 місяців тому

    Is there any way to access that VM from another machine ?

    • @vladimirnicolescu1342
      @vladimirnicolescu1342 6 місяців тому

      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 👍🏻

  • @Mr.Daya_Dee
    @Mr.Daya_Dee 2 місяці тому

    I'm getting "Permission denied, please try again"
    Please provide solution

  • @omo.tstarboy3690
    @omo.tstarboy3690 Рік тому +1

    The volume is not coming out... I can't hear anything... I'm I the only one ?

  • @safatkhan676
    @safatkhan676 3 місяці тому

    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.

  • @tonyd6853
    @tonyd6853 10 місяців тому

    Are you on an intel mac in 2023?

  • @ahmetdurgut9953
    @ahmetdurgut9953 11 місяців тому

    daşşağını yerim beni büyük bir dertten kurtardın

  • @KomentarSaya
    @KomentarSaya 9 місяців тому

    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 9 місяців тому

      ssh jammy@localhost
      Permission denied, please try again.

  • @shrimantmore7765
    @shrimantmore7765 7 місяців тому

    Thanks