Mac OS Version

Mac

터미널 열어서 아래 명령어 실행

brew install cloudflare/cloudflare/cloudflared

++ brew패키지 관리자가 없다면 아래 명령어로 설치 후 실행

/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"

VSCode

  1. Remote ssh Extension 설치
  2. command+ shift+ p 누르고 remote ssh: open configuration file 실행
  3. /User/{user name}/.ssh.config 선택 및 수정 / 기존 파일 밑에 복붙
Host *.trycloudflare.com
    HostName %h
    User root
    Port 22
    ProxyCommand exec cloudflared access ssh --hostname %h

Colab

google drive와 연동

from google.colab import drive

drive.mount('/content/drive')

Install colab ssh

!pip install colab_ssh --upgrade

from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared
launch_ssh_cloudflared(password="1234") # password 입력