!pip install colab_ssh --upgrade
from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared
launch_ssh_cloudflared(password="nothing",prevent_interrupt=True)
#会给出结果: Host Host *.trycloudflare.com ...
# : ssh journey-mining-questions-through.trycloudflare.com
Host *.trycloudflare.com
HostName %h
User root
Port 22
ProxyCommand /c/app/cloudflared.exe access ssh --hostname %h
打开 git bash:
ssh journey-mining-questions-through.trycloudflare.com
输入密码: nothing
!pip install wandb
import wandb
wandb.init()
#根据提示操作, 最后有链接,打开就是监控页面
from google.colab import drive
drive.mount('/content/gdrive')