colab ssh,gpu monitor

益楷
2023-12-01

工具:

colab-ssh

在colab启动ssh server :



!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

win10 ssh客户端:

配置
  1. cloudflared-stable-windows-amd64.zip 解压到c:\app\
  2. 打开git bash: 新建文件~/.ssh/config:
Host *.trycloudflare.com
        HostName %h
        User root
        Port 22
        ProxyCommand /c/app/cloudflared.exe access ssh --hostname %h
ssh访问:

打开 git bash:
ssh journey-mining-questions-through.trycloudflare.com
输入密码: nothing

colab gpu monitor

!pip install wandb
import wandb
wandb.init()
#根据提示操作, 最后有链接,打开就是监控页面

colab mount google drive

from google.colab import drive
drive.mount('/content/gdrive')
 类似资料:

相关阅读

相关文章

相关问答