0%

白嫖谷歌运维机

白嫖谷歌运维机

QQ群:397745473

cloud

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# https://shell.cloud.google.com/
# https://console.cloud.google.com/billing/
sudo -i
docker run -i -t --privileged=true --restart=always --name ubuntu ubuntu /bin/bash
docker exec -i -t ubuntu /bin/bash

apt update -y;apt install -y curl net-tools openssh-server tmate iputils-ping unzip sudo && /etc/init.d/ssh start
source <(curl -sL https://git.io/Jqfs7)
获取类似: Your ubuntu Pasword Is aA4DDPwyfl

# 建外连SSH
wget -O ngrok-stable-linux-amd64.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip && ./ngrok authtoken 1zfP64hiApZ7cXrf6j2LUB4oPxR_677Tqt8BJYQFGQyPYYWf2 && ./ngrok tcp 22

# 获取类似: tcp://2.tcp.ngrok.io:13966

# 用Bitvise SSH Client连接主机

colab

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://colab.research.google.com/
!source <(curl -sL https://git.io/Jqfs7)
Your debian Pasword Is yve1cmVJUm


#ssh 服务
!apt install openssh-server
!/etc/init.d/ssh start
!wget -O ngrok-stable-linux-amd64.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
!unzip ngrok-stable-linux-amd64.zip
./ngrok authtoken 1zfP64hiApZ7cXrf6j2LUB4oPxR_677Tqt8BJYQFGQyPYYWf2 && ./ngrok tcp 22

# 防断
while True:pass

# tmate控制
1. 打开一个colab
2. !apt -y install tmate
3. !ssh-keygen
4. !sudo tmate -S /tmp/foo.sock

得到 https://tmate.io/t/trMh5YNUzkDD8rZUTnv7SvtNf 就可以直接打开终端了
ssh xYsXqRvjYQQLGu9e8ddaQAxSc@nyc1.tmate.io

QQ群:397745473

欢迎关注我的其它发布渠道