Connect to google collab with ssh from console from PC

后端 未结 2 1582
耶瑟儿~
耶瑟儿~ 2021-02-10 17:31

I\'ve found one instruction on the net how to do it:

#Generate root password
import random, string
password = \'\'.join(random.choice(string.ascii_letters + stri         


        
2条回答
  •  眼角桃花
    2021-02-10 17:40

    You need to setup an account with ngrok.

    Followed by which you will receive an authorisation code.

    You can then got to the tunnels section of ngrok website and find the session you created.

    Then ssh into the remote server:

    ssh root@0.tcp.ngrok.io -p 
    

    and use the password generated in the code to connect.

提交回复
热议问题