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