colab ssh,gpu monitor

工具:

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')
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ziix

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值