brenner-tobias / addon-cloudflared

Connect remotely to your Home Assistant instance without opening any ports using Cloudflared.
MIT License
735 stars 52 forks source link

Cant get SSH working #305

Closed mamhuijb closed 1 year ago

mamhuijb commented 1 year ago

The problem

Hi,

Question about how to configure SSH correctly

I tried this command to add it to the additional hosts

I changed the path to a few diffrent options i guessed maybe one will work but without succes Am i missing something or is SSH not possible with this add-on ?

Many thanks in advance!

What version of Cloudflared has the issue?

4.0.8

What was the last working version of Cloudflared?

No response

What type of installation are you running?

Home Assistant OS

Add-on YAML Configuration

No response

Anything in the logs that might be useful for us?

No response

Steps to reproduce the issue

Followed guide on cloudflare docs and digged through some diffrent paths

Additional information

No response

lsc64 commented 1 year ago

Not sure if SSH is possible, but it's most certainly not something Cloudflare would knowingly enable. This is probably not the answer you're looking for, just want to make sure you're aware of it.

2.8 Limitation on Serving Non-HTML Content

The Services are offered primarily as a platform to cache and serve web pages and websites. Unless explicitly included as part of a Paid Service purchased by you, you agree to use the Services solely for the purpose of (i) serving web pages as viewed through a web browser or other functionally equivalent applications, including rendering Hypertext Markup Language (HTML) or other functional equivalents, and (ii) serving web APIs subject to the restrictions set forth in this Section 2.8. Use of the Services for serving video or a disproportionate percentage of pictures, audio files, or other non-HTML content is prohibited, unless purchased separately as part of a Paid Service or expressly allowed under our Supplemental Terms for a specific Service. If we determine you have breached this Section 2.8, we may immediately suspend or restrict your use of the Services, or limit End User access to certain of your resources through the Services.

brenner-tobias commented 1 year ago

SSH is definitely possible with Cloudflare tunnel. I suggest you set-up the tunnel as a remote managed tunnel from the Cloudflare Zero Trust Dashboard and than follow these instructions. You basically have to set-up the tunnel with a dedicated subdomain for SSH and than also create a Cloudflare Application for SSH, enabling the Browser Rendering.