Connect To A Raspberry Pi Zero With A USB Cable And SSH

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

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

  • @WVRetreat
    @WVRetreat 6 лет назад +12

    Very helpful video. I would suggest that you put commands and text that you type in the Video Notes. For example: "dtoverlay=dwc2" in the config.txt and "modules-load=dwc2,g_ether" in cmdline.txt file. That way users won't risk mistyping the commands.

  • @SwissJavaKnife
    @SwissJavaKnife 7 лет назад +9

    I just followed this tutorial on Linux Mint 18.1 and kept getting "ssh: Could not resolve hostname raspberrypi.local: Name or service not known". First, I ran "sudo avahi-daemon --D" to make sure "local" host names could be resolved, but still got the same error. Then, I went to "Network Settings"->"USB Ethernet"->"Settings"->"IPv4" and switched "Addresses" from "Shared to other computers" to "Link-Local Only", and TADA! It worked! Hopefully, this helps someone else. Thanks for the tutorial, +Nic Raboy!
    Edit: Fixed accidental strikethrough

    • @jorgegomezA
      @jorgegomezA 7 лет назад

      V can you help me i am trying to follow what you wrote but cant find USB Ethernet under network (linux mint 18.1)

    • @SwissJavaKnife
      @SwissJavaKnife 7 лет назад

      jorge gomez does a new network appear when you plug in your pi?

    • @jorgegomezA
      @jorgegomezA 7 лет назад

      i Have it working thanks the cable was the problem. Now if i can share my internet it will be great. Thanks

    • @brotherofhercule8887
      @brotherofhercule8887 7 лет назад +1

      up, how do i share connexion to the pi on debian please ?

    • @leonsebel9237
      @leonsebel9237 6 лет назад +3

      How to headless usb ssh into the pi on kali linux ?? (EVERYTHING is working on windows but I can't get it done on linux) What you are saying don't work on Kali Linux, i can't ssh into it

  • @dubuissonraymon7764
    @dubuissonraymon7764 4 года назад

    Thank you !! I modified all the requested files and it was not working because.. I was not using the right usb port !
    I watched a lot of different video but you are the only one with that explanation !
    Now that i m able to connect ssh, i have to fin how to be able to connect to internet. I don t have a good Ip on the PI..

    • @TheRchiemstra
      @TheRchiemstra 4 года назад

      www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/

  • @bennguyen1313
    @bennguyen1313 5 лет назад +2

    I'm running a Pi Zero W (Jessie) that already works with SSH over ethernet. On the Pi side, how could I check if SSH over USB is also enabled (or enable it if not already)?
    On the PC/Windows side, I use MobaXterm for SSH'ing via ethernet.. what kind of software/drivers would I need to SSH to the PI via USB?

  • @ludditeneaderthal
    @ludditeneaderthal 7 лет назад

    Is this also what an Ethernet/USB dongle would need to operate as a lan port? Cool, clear, step by step vid!

  • @johnsimon8457
    @johnsimon8457 5 лет назад

    Learned bout the difference between charge and data cables the hard way...

  • @Garush
    @Garush 7 лет назад

    Great tutorial man, keep up the quality content

    • @Garush
      @Garush 7 лет назад

      I find that a lot of times on RUclips the content is very far from quality and leaves out a lot. This tutorial explains everything perfectly and has a written version as well which is far better than any other tutorial I've seen. You deserve to have a lot more subs.

  • @sokoloft3
    @sokoloft3 3 года назад

    Cool. Going to use this to mess around with wordpress. Also you need bonjour print services on windows, as well as the rndis driver.

  • @antonioantonino3405
    @antonioantonino3405 7 лет назад +1

    Man! You literally saved my life! Thank you SOOOO MUCH!

  • @johncrittenden2266
    @johncrittenden2266 5 лет назад

    can you still use the HDMI or will using the usb be the only way you can get on now?

  • @robertnussberger2028
    @robertnussberger2028 2 года назад +1

    What would happen if I plug the "power only" cable usb into the "data/power" usb plug slot? Would it ruin the raspbery pi zero?

  • @leonsebel9237
    @leonsebel9237 6 лет назад +1

    How to headless usb ssh into the pi on kali linux ?? (EVERYTHING is working on windows but I can't get it done on linux)

  • @FLANCKE
    @FLANCKE 2 года назад

    Wonderful, many thanks!

  • @leec2106
    @leec2106 7 лет назад +1

    Thank you
    I then on my windows 10 PC went to network and clicked then then under tools I clicked bridge,
    Io am now doing an apt-get update
    and now an apt-get upgrade
    Maybe this will let me get online via wifi

  • @mrdude3697
    @mrdude3697 4 года назад +1

    its not working on linux.
    do i need a special usb cable?

    • @ThePolyglotDeveloper
      @ThePolyglotDeveloper  3 года назад

      Should work fine. Just make sure the cable is charge and sync, not just charge. Most of the cheaper cables are just charge and transfer no data.

  • @robaa4990
    @robaa4990 4 года назад

    After 1.15 into the video "check your usb cable so it has data" problem sloved! THANKS!

  • @helloboris
    @helloboris 6 лет назад

    Well explained. Thank-you.

    • @helloboris
      @helloboris 6 лет назад

      I hadn't noticed that you had a blog version too. Full marks, sir!

  • @JuanSanchez-gn8mj
    @JuanSanchez-gn8mj 5 лет назад

    hi ! , it works in another raspberry models?

  • @MikeNewham
    @MikeNewham 7 лет назад

    Hi Nic, I have a raspberry pi zero w with wireless. Follows your instructions but I get an issue that says - ssh: connect to host raspberry pi.local port 22: connection refused. Any idea what the problem is?

    • @ocelot667
      @ocelot667 7 лет назад +1

      Hi Michael, I too am having issues, but in my case it says could not resolve hostname raspberrypi.local: Name or service not known

    • @MikeNewham
      @MikeNewham 7 лет назад

      Okay, will do. Thanks for link.
      It seems to me that projects could be completed in half the time if we could just have the one otg usb cable going in to the Pi Zero and then use my Mac laptop to VNC in..
      Prefer the GUI version of Raspberian, for the moment anyways..

    • @MikeNewham
      @MikeNewham 7 лет назад

      Yes, first 'could not connect' and then says 'could not resolve'.

    • @iGThomas
      @iGThomas 7 лет назад

      same issue with the new w version

    • @ocelot667
      @ocelot667 7 лет назад +1

      Michael Newham i was able to discover a solution for the problem. make sure you have bonjour installed as well as enable internet sharing within Windows. that solved my issues

  • @luke752010
    @luke752010 6 лет назад

    WOW! Great video! My compliments. It's works fine on my iMac :-) What about to let it work on a windows 10 machine? :-)

  • @xplosion8092
    @xplosion8092 5 лет назад

    The ssh file, is it a .txt file or what? I was editing everything in Mac text editor

  • @MrDowntemp0
    @MrDowntemp0 6 лет назад +1

    Is it possible for the pi to share the host PC's internet connection, so that it can apt-get?

  • @markbosshard
    @markbosshard 6 лет назад +1

    WIN: please add that you need to install bonjour services so that windows recognizes "raspberry.local" as a host - made it work for me! link to the bonjour for windows exe on apple's website: support.apple.com/kb/DL999?locale=en_US

  • @MonkeyMan9999
    @MonkeyMan9999 2 года назад

    Didnt work with multiple attempts. Everything was typed exactly and double checked probably 10 times. Everything after modules-load=dwc2,g_ether was deleted after trying to boot. Tested using raspbian lite kernel 5.10 release date January 28,2022

  • @inesmercier1948
    @inesmercier1948 7 лет назад +3

    THAAAAAAAAAAANKKK YOOOOOOOOOOOOU DDDAAAAAAAAAMMMNN
    sorry, quite excited here

  • @randytayler7871
    @randytayler7871 4 года назад +1

    Great video, one tiny improvement, please enlarge the mouse's point next video you make

  • @issamirandilla9016
    @issamirandilla9016 5 лет назад

    Download link for raspbian jessie?

  • @canallucasrocha
    @canallucasrocha 4 года назад

    Tem como fazer este processo com o piCore?

  • @brotherofhercule8887
    @brotherofhercule8887 7 лет назад

    Hi, not working on Linux Computer, can't acces raspberry.local :(
    Any solution?

    • @peterwacker9297
      @peterwacker9297 7 лет назад

      Brother of Hercule yes look at the topkomment of this video.

    • @TheRchiemstra
      @TheRchiemstra 4 года назад

      www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/

  • @Raj_darker
    @Raj_darker 5 лет назад

    How to get GUI of raspberry pi 0 without wifi version) with the help of VNC viewer..
    Plzz help me..
    Through ssh can't get GUI..

    • @timothyeichstaedt8952
      @timothyeichstaedt8952 5 лет назад

      www.thepolyglotdeveloper.com/2016/06/connect-raspberry-pi-zero-usb-cable-ssh/
      This link in description

  • @randomforrest4199
    @randomforrest4199 7 лет назад +1

    ssh: Could not resolve hostname raspberrypi.local: Name or service not known

    • @Forsrobin
      @Forsrobin 6 лет назад

      ruclips.net/video/QElG2gT8S7U/видео.html

    • @JoshFlorii
      @JoshFlorii 6 лет назад

      little late, but for future readers you either need to wait 5-60 seconds and try again, depending on how slow things are that day, or make sure you plugged into the data port on the pi.

    • @markbosshard
      @markbosshard 6 лет назад

      install the windows bonjour service and it will work. exe is here on apple's website: support.apple.com/kb/DL999?locale=en_US

    • @TheRchiemstra
      @TheRchiemstra 4 года назад

      www.factoryforward.com/pi-zero-w-headless-setup-windows10-rndis-driver-issue-resolved/

  • @Nick_works
    @Nick_works 5 лет назад

    This doesn't seem to work anymore.

  • @yoerim360
    @yoerim360 6 лет назад

    those 2 files don't excist in pistar . so no option to get connected to the pi zero. not going to buy a ridiccilous expensive adapter ( why the hell even use that never heard of microhdmi??) seems zero is the actual vallue and use of this pi :(

    • @yoerim360
      @yoerim360 6 лет назад

      just trying to get it to play dmr hotspot :)

  • @jonnupe1645
    @jonnupe1645 6 лет назад

    why am i having such a hard time to find a tut for this topic on a LINUX system?