skip to content
Astro build wallpaper

Akses SSH Cloudflare Tunnel dengan Local Terminal

/ 1 min read

Referensi

Prasyarat

  1. setup koneksi ssh pada Cloudflare Zero Trust (Tunnel).
  2. install Cloudflared di local

Tutorial

  1. Ambil Konfigurasi Cloudflare Tunnel.
    oxw@oxw:~$ cloudflared access ssh-config --hostname ssh.example.com
    
    # OUTPUT:
    # Add to your /home/oxwazz/.ssh/config:
    # Host ssh.example.com
    #    ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h
    
  2. Tambahkan konfigurasi tersebut ke ke ~/.ssh/config.
  3. coba akses ssh.
    oxw@oxw:~$ ssh root@ssh.example.com
    
  4. Selesai.