How to SSH into any VirtualBox VM with VS Code

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 36

  • @codedifferent
    @codedifferent  Год назад +1

    i just want to let anyone watching this know that while using this, you can't use internet on the vm, so for example cloning a git repository or installing something from your package manager won't work. i normally just switch back to the original settings, use the internet on the vm for whatever i need, and then switch back.

    • @gzorblubz
      @gzorblubz Год назад

      I can use Internet on the VM while connected to VS Code via SSH. I am using VMware workstation player instead of Virtual Box, don't know if this has a link to this...

    • @codedifferent
      @codedifferent  Год назад +1

      @@gzorblubz hmm interesting. You’re the second person to say this so i think it was just something wrong with the Guest OS i was using or maybe the version of virtualbox. My laptop at the time was also really bad. Possibilities are endless.

  • @vgtgoat
    @vgtgoat 11 месяцев назад +2

    Thanks, this was helpful for my work. 10/10 guide. 11/10 intro.

  • @windsound2010
    @windsound2010 8 месяцев назад

    Searched for an hour, this is the only link that worked :D ty so much!

  • @thebestusernameevr
    @thebestusernameevr 10 месяцев назад +1

    I liked that rendition of "Oye Como Va" in the background.

    • @codedifferent
      @codedifferent  10 месяцев назад +1

      Yeah i really like it too. Its called Harlem Barber Swing by Jazzinuf

  • @ursaursa7840
    @ursaursa7840 Год назад +1

    I suppose that VM didnt have internet connection because you overrided NAT with bridge in VirtualBox settings, you could enable bridge adapter in addition to already existing NAT in a second tab

  • @thatdude3685
    @thatdude3685 2 месяца назад

    U changed my life.

  • @B18-a
    @B18-a 5 месяцев назад

    Simple and easy explained 👍

  • @ImJoe2002
    @ImJoe2002 10 месяцев назад

    Worked great. Thanks very much.

  • @azeezaeagal1575
    @azeezaeagal1575 Год назад

    Worked like a charm! God Bless! Doing the lord's work!

    • @codedifferent
      @codedifferent  Год назад +1

      thanks! i just want to let you know that while using this, you can't use internet on the vm, so for example cloning a git repository or installing something from your package manager won't work. i normally just switch back to the original settings, use the internet on the vm for whatever i need, and then switch back.
      glad you enjoyed.

    • @knockback17
      @knockback17 Год назад

      @@codedifferent That is strange, I can use internet on the VM just fine while connected, all I did was follow your video. Works like a charm.

    • @codedifferent
      @codedifferent  Год назад

      @@knockback17 hmm that’s weird. Maybe its just a problem with the laptops me and a few people i know were using. Thanks for letting me know!

  • @javiervaldez7478
    @javiervaldez7478 3 месяца назад

    Hi Great tutorial
    When I am using my VM and send the command “hostname -I” the IP is not show, it is empty

  • @hotrandacduy3340
    @hotrandacduy3340 Месяц назад

    i stuck at the step where it tell me to choose linux and keeps going onm downloading forever then asking me to choose linux again keep overlaying

  • @mistert1628
    @mistert1628 3 месяца назад

    Great video shame Bridge Adapter bluescreens my Windows 11 desktop. Upgrade to VB 7.0.18 fixes this and do try out DHH's version of Ubuntu.

  • @99baddar
    @99baddar 3 месяца назад

    it really helped thanks

  • @Nyr1
    @Nyr1 4 месяца назад

    thx for guide bro

  • @inzynierskacompany9084
    @inzynierskacompany9084 7 месяцев назад

    VCS doesn't show the prompt for the password
    I set up a Apline on VB

  • @SnackCH
    @SnackCH 6 месяцев назад +1

    You are awsome man, thank you

  • @akhilchouhan6869
    @akhilchouhan6869 7 месяцев назад

    hey So i created this VM using commandline using VBoxManage createvm and import commands now I used bridged network for virtual networking, now after this gets created i dont have the ip address of this vm, how can i know the ip address so that i can ssh into it, can I make VBoxManage import command return ip address in some way? i want to automate this process of creating the vm using a script

    • @codedifferent
      @codedifferent  6 месяцев назад

      When you are using your VM and you use the “hostname -I” command, it doesn’t show anything like 192.168.xyz?

  • @Duoxini
    @Duoxini 3 месяца назад

    Thank you

  • @HNK-ln7hq
    @HNK-ln7hq 9 месяцев назад

    Do I need to have the vm turned on to connect with ssh?

  • @giveaway4002
    @giveaway4002 Год назад

    any thing for KVM, QUMU ?

    • @codedifferent
      @codedifferent  Год назад +1

      Sorry but my knowledge with KVM is very limited. I used it once lol

    • @giveaway4002
      @giveaway4002 Год назад +1

      @@codedifferent its alright.

  • @migueldelatorreatrio9639
    @migueldelatorreatrio9639 12 дней назад

    VM:
    sudo systemctl status ssh
    sudo apt install openssh-server
    sudo systemctl enable ssh
    sudo systemctl status ssh
    hostname -I
    ls
    Windows:
    ssh --------@***.***.*.***
    ls

  • @cianid463
    @cianid463 10 месяцев назад

    От души братан, но давай в следующий раз по русский, а то не понятно нихуя

    • @codedifferent
      @codedifferent  10 месяцев назад +2

      От души братик.
      I’ve been learning russian for a few years.

  • @2105lovesyou
    @2105lovesyou 11 месяцев назад

    thank you