ssh_from_internet_via_cloudflare_zero_trust.md (1255B)
1 --- 2 title: SSH from Internet via Cloudflare Zero Trust 3 tags: 4 - cloudflare 5 - zerotrust 6 - openssh 7 private: false 8 updated_at: 2025-07-29 19:09 9 id: null 10 organization_url_name: null 11 slide: false 12 --- 13 # TL;DR 14 https://zenn.dev/jij_inc/articles/659fe35813b940 15 この記事の方がわかりやすいです。 16 当記事は、上記の記事を既に理解しているが、手順や細かいパスなどを忘れてしまった人が、確認をするための記事です。 17 18 # 新規クライアント追加手順 19 1. Install cloudflared 20 1.5. Check Where cloudflare binary file 21 2. edit `$HOME/.ssh/config` 22 ``` 23 Host ssh-server 24 HostName <subdomain.domain.tld> 25 ProxyCommand <path to cloudflared binary> access ssh --hostname %h 26 ``` 27 28 # Cloudflare Zero Trustの設定 29 1. Add public host name(may be it through cloudflare tunnel) with subdomain you like. 30 2. Create Access Application and set policy you like. 31 32 __NOT SETTING AS A BROUWSER RENDERING!!!!__ 33 34 # Attention of this article 35 この記事の項目の順番は、自分が確認する頻度順であります。 36 実行手順としては、 37 1. Cloudflare Zero Trustの設定 38 2. 新規クライアント追加手順 39 の順で実行することをおすすめします。