HOW TO: Remote access a Raspberry Pi using a Cloudflare tunnel (node-red and ssh).

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

КОМЕНТАРІ • 119

  • @gonzaloh6363
    @gonzaloh6363 Рік тому +5

    I've been looking for this, this is gold. Thanks a lot.

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

      thanks for your words.

  • @Diego-rc1zi
    @Diego-rc1zi 2 роки тому +3

    Man! Your videos are great, I used to expose my raspberry services using a VPN with a public VPS but I will definitely going to try this in order to learn Cloudflare, thanks a lot!

    • @lu4t
      @lu4t  2 роки тому

      good!😀

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

    Man you don't know since when I was looking for this specific, you have a new follower thanks for sharing

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

      thanks for watching!

  • @MLBPC
    @MLBPC Рік тому +3

    Nice one for the addition of ssh via bypass. I was trying to figure this out for ages!

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

      thanks for your feedback!

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

      hey how did this work for you? did you need any custom config?

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

      @@schoolofinterest8675 I ended up just using tailscale as I couldn’t get this to work with Termius or the various clients I use on iOS and Windows

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

      Hi!, all the steps worked like charm except the bypass thing for ssh client. Probably needs any additional setting, can you relook, in case Cloudflare changed something in latest versions.

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

    very nice. i got my ssh access working with just a few clicks thanks to your easy to follow video.

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

    I've been looking for the same. Thanks a ton :)

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

      thanks for watching!

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

    Thank you!
    This is just what I needed!

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

    thanks mate, that was really healpful!

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

      thanks for watching

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

    This was really useful. Thank you.

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

      thanks for watching 😃

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

    Hello. I do the same on RPI v2 (architecture - armv71) and when execute CLI command (3:50) I see next message: package architecture (amd64) does not match system. I tried execute commands for all 4 options (32bit, 64bit, arm32-bit, arm64-bit) and with no success. What is a reason of this?

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

      the raspberry shown on the video is using arm64 processor (aarch64), you need to make sure you use the tunnel image for arm32 arch (which is the one your RPi needs).

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

      @@lu4t I selected arm32-bit. After CLI command executing I see next message: dpkg: error processing archive cloudflared.deb (--install):
      package architecture (arm) does not match system (armhf)

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

    Thank you this is a great video!

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

      thanks for watching!

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

    Great video, I will try it.

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

      good!

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

      @@lu4t I tried it. It works but it is too dangerous. I only opened one ssh tunnel to the public internet but I can access every computer on the local network (in my house). Maaaaaan it really makes my blood frozen.

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

      @@saitamatechno if you don't want access to the lan, you should start the tunnel attached to the docker bridge network (only the containers attached will be accessible).

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

      @@lu4t oooh dude! You are right, we can use docker containers. It makes sense for security. Thanks!

  • @cdev4040
    @cdev4040 2 роки тому +3

    Thank you for this great video. I can ssh into ubuntu 20.04 on wsl2 windows 11 via browser render ssh but I can not ssh from terminal. When I enter ssh command nothing happens, no errors, no response, just stuck. Do you have any suggestions?

    • @lu4t
      @lu4t  2 роки тому

      sure, you need to use a tunnel (on proxy mode) from the box you're opening the terminal to reach the server. If you get stuck let me know and I'll do a video on this method.

    • @fung612
      @fung612 2 роки тому

      I have the same problem. Even after config the Proxy Type to “”

    • @lu4t
      @lu4t  2 роки тому +2

      @@fung612 if you need to get ssh access from client terminal, you need to install a tunnel on the client also.

    • @Matt-oy9fx
      @Matt-oy9fx 2 роки тому

      @@lu4t I have the same problem. Can you describe what needs to be done, please. The would like to use putty client for connections. Regards, Matt

    • @lu4t
      @lu4t  2 роки тому +1

      @@Matt-oy9fx Hi, I will try to record a quick video showing how to use putty on the client side...

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

    ssh via browser works for me, but not via terminal. i did disabled the browser render and use bypass.

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

    the web rendering is very useful

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

      Indeed 😀

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

    No luck with SSH to a digital ocean droplet running Ubuntu 22.04. I followed the video to configure for ssh from terminal. The ssh from the terminal hangs. SSH with browser based terminal as well as HTTP works, so I think the tunnel is up and ssh is functional. Telnet to port 22 doesn't connect, where it should and show an OpenSSH message. SSH works correctly via the public IP address (not cloudflare subdomain). Any ideas? Thanks!

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

      probably you need to adjust the ssh client settings, watch this: ua-cam.com/video/fNSf7D8CXgA/v-deo.html

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

      @@lu4t Ah, you need to run cloudflared as proxy on the client. I was hoping avoid installing any software on the client -- attack surface and security concerns. I'm curious why cloudflared on client is necessary. Tunnels on port 80 work without it. I also tried with Warp on the client, which is able to intercept all traffic, but no luck there either.

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

      thick clients accessing remotely services behind CF Edge means installing cloudflared or WARP most of the times...

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

      @@lu4t Hi There, I want to use cloudflare tunnel ssh ( Terminal One ) for bit bucket pipeline. So can you please suggest me any video / tutorial please ?

  • @gamestylerz
    @gamestylerz 2 роки тому +1

    I tried following your guide, SSH worked over Browser but not through terminal, there I get a "timed out" error message

    • @lu4t
      @lu4t  2 роки тому

      have a look at this: ua-cam.com/video/fNSf7D8CXgA/v-deo.html

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

    Can be used to have pihole on the go?

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

    Very good video.. Amazing

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

      thanks for watching 😀

  • @kevinmarr7094
    @kevinmarr7094 2 роки тому

    Awesome!!!! Thanks for the video

    • @lu4t
      @lu4t  2 роки тому

      thanks!... please share 🙂

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

    awsome video thanks

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

      thanks for watching! 🙂

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

    Thanks for the video. However, when I ssh from client to host, it reports "kex_exchange_identification: Connection closed by remote host
    Connection closed by UNKNOWN port 65535". But my cf running correctly both on server and client. Any suggestions?

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

      I would make sure the ssh client is updated, restart the ssh server, and make sure that the tunnel container is running attached to the host nw

  • @borjaroca1262
    @borjaroca1262 2 роки тому +1

    Hello again! what to do for R-Pi's with armhf architecture?

    • @lu4t
      @lu4t  2 роки тому

      the RPi I have (shown on the video) is arm.

    • @3liot33
      @3liot33 Рік тому +2

      This command before installing cloudflared worked for me:
      sudo dpkg --add-architecture arm

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

      @@3liot33 thank you very much for the command. Finally I was able to finish the installation on the RP4!😉

  • @cedrickcampoto2670
    @cedrickcampoto2670 2 роки тому

    thank you, your the best.

    • @lu4t
      @lu4t  2 роки тому

      good to know it helped you!. thanks for watching!

  • @claudiopgjr
    @claudiopgjr 2 роки тому +1

    Great video, thank you! Can you do a similar for RDP?

    • @lu4t
      @lu4t  2 роки тому +1

      thanks!. RDP is similar to ssh over terminal: you need to install a tunnel on the client also. I don't have anything runnig over RDP on my homeLab, but will have a look into it.

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

    i wish the audio is somewhat good but anyway its a big help

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

      thanks for your comment!

  • @DF-nq8vy
    @DF-nq8vy 2 роки тому +1

    Great explanation 👌
    Can you expose an mqtt broker with argo tunnels?

    • @lu4t
      @lu4t  2 роки тому +1

      Sure, you can. Just make sure you use tcp instead of http when you define the ingress rule.

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

    Hello! Thank you so much for this content! I have a question, is it the same thing for port 443? it doesn't work without an Application like in the ssh case? Because I tried the 443 https and I can't access it

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

      the connection goes like this: client --> cloudflare ----> server. The https connection terminates on cloudflare, if you want a full TLS, you need to configure it on cloudflare dashboard, it's called "strict".

  • @AmanSinghal-ny3ik
    @AmanSinghal-ny3ik 5 місяців тому

    I dont understand the need for the node red . Can you please quickly explain ?

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

      node-red is just used to test if the tunnel is working. You can use any other http service to do the test yourself.

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

    lu4t Tech,
    thank you very much for the great tutorial. I can now easily access node-red "EDITOR" from anywhere.
    How do I have to configure Cloudflare so that I am redirected to the node-red "USER INTERFACE"?
    I entered the "ui" in the path configuration (Subdomain.Domain/ui).
    Unfortunately, this does not redirect me to the node-red "UserInterface" as desired.
    I hope you know what I mean and that you have a solution for me.
    Thanks in advance.
    Daniel

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

      it should work. Make sure you enter the port, or try adding a different subdomain for the ui access. Something like: dashboard.domain/ui points to nodered_IP:1880

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

    Ssh browser rendered working but not from terminal with bypass policy

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

      you should see the video explaining how to use a ssh client.

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

    I followed everything you showed. browser method worked but terminal is not working for some reason. Giving timeout. Using ubuntu server.

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

      If browser method works for you, then take it. The terminal one is just more complex and at the end of the day it will provide you the exact same result. :)

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

      @@lu4t I think terminal would be faster and light so, rather than opening browser it would be easier to ssh from terminal. But anyway I will look into it myself. Thanks for the video.

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

      Oh!, I thought you were talking about the tunnel config, but you were talking about ssh right?. Then the terminal is the the right choice, obviously :) Have a look at this video explaining how to ssh using terminal: ua-cam.com/video/fNSf7D8CXgA/v-deo.html

  • @MAShams1
    @MAShams1 2 роки тому

    first of all, thank you so much for your effort
    but till this video I can't access the node-red flow\ dashboard remotely am I missing something?

    • @lu4t
      @lu4t  2 роки тому

      if you set up a tunnel and can access the editor, you should be able to access the dashboard using the same path that you would use to access to it locally.

    • @MAShams1
      @MAShams1 2 роки тому

      @@lu4t when i go to the same path it works localy but it doesn't work on another network

    • @lu4t
      @lu4t  2 роки тому

      @@MAShams1 I don't get it: are you saying you can access the editor and NOT the /ui path?

    • @MAShams1
      @MAShams1 2 роки тому

      @@lu4t so
      If I'm connected to network x with nodered and from my phone connected to the same network x the nodered site opens but if I'm connected to network y from my phone it doesn't open

    • @lu4t
      @lu4t  2 роки тому

      @@MAShams1 again, I don't understand the problem you are having. This video shows how to access a node-red instance from outside your lan. Once you set it us, you will get access from any devide.

  • @Vite-hs9oz
    @Vite-hs9oz Рік тому

    very useful, could you show me how to create tunnel for access postgres DB host in raspberry pi

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

      thanks for watching!

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

    CreateProcessW failed error:2
    posix_spawnp: No such file or directory
    can you help me?

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

      There are other videos on the channel showing how to use a ssh client.

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

    i am unable to use ssh in termal but ssh in browser is working.

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

      this video shows how to use ssh from terminal: ua-cam.com/video/fNSf7D8CXgA/v-deo.html

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

    Sir, Can you help me onething I want to access my Home Pc using RDP Via ClousFlare Zero tunnel, but i cant access it, I can access 80 port or other port on web browser without port forrowarding but need to access RDP Windows 10, Can you help me Sir. Please.

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

      you will need to proxy the rdp traffic, install one tunnel on each end. Watch this video: ua-cam.com/video/fNSf7D8CXgA/v-deo.html showing how to ssh proxing the traffic; for RDP would be an equivalent process (just different protocol / clients). Good luck!

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

      @@lu4t this not helpfulle for me thank you

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

    i don't know , it is working on the browser , but not on the terminal

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

      you need to proxy the traffic from the terminal. Watch other videos on the channel showing how to do this.

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

    the ssh access from terminal part is not working i tried everything as mentioned please help

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

      for terminal access, try this video instead: ua-cam.com/video/fNSf7D8CXgA/v-deo.html

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

      @@lu4t hello, in the current video you were able to ssh without any config on client end? is that possible?
      the new video needs some config done on the client end right?

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

      there are two methods: one using a terminal embedded on the browser, another using a ssh client (thick or terminal). The config needed on the client side depends on the type of ssh server you are using, and the type of ssh client you use. There no one-size-fits-all config.

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

      @@lu4t is it possible to connect to ssh without cloudflared install just with url?
      (if there is a tunnel url? with bypass mode?)

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

      @@adityasher I guess you mean without cf tunnel on the client; yes, you can embed a terminal on a browser.

  • @borjaroca1262
    @borjaroca1262 2 роки тому

    Is docker needed for this solution?

    • @lu4t
      @lu4t  2 роки тому

      absolutely not, you can run a cf tunnel as a daemon on a RPi

    • @borjaroca1262
      @borjaroca1262 2 роки тому

      Nice, and thanks for the fast response, in which cases would you recommend to dockerice your solution

    • @lu4t
      @lu4t  2 роки тому

      @@borjaroca1262 in my very humble POV running a container load is always the first choice (if possible).

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

    it keeps telling me password incorrect for ssh rendered. It accepts the one time passcode, but wont accept my user and password please help and i verified that my login info is correct

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

      check usign the method explained on this video: ua-cam.com/video/fNSf7D8CXgA/v-deo.html

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

      @@lu4t thank you I got it I deleted the ip address and added again after creating the application and it worked no problem

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

      great!.