Skip to content

Instantly share code, notes, and snippets.

@bikcrum
Last active July 5, 2024 11:41
Show Gist options
  • Save bikcrum/f9d4cfb0c40dff23329b89cd664d4964 to your computer and use it in GitHub Desktop.
Save bikcrum/f9d4cfb0c40dff23329b89cd664d4964 to your computer and use it in GitHub Desktop.
This is the way how can you connect google colab as well as google drive (mounted) using SSH. This is useful when you want to download data directly to your google drive specially for machine learning purpose. It can be easy to mount google drive and use files into for your code.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Swastik2000
Copy link

Can someone guide me what will be the password for ssh?

@alex-decode
Copy link

@Swastik2000 you shouldn't be prompted for a password if you put a correct rsa pub key in:

%%writefile ~/.ssh/authorized_keys
CONTENT_OF_ID_RSA_PUB_FILE

@yunshiuan
Copy link

@bikcrum Thank you so much for this helpful post! It really saves me!

@danielajisafe
Copy link

http://localhost:4040/api/tunnels is not available. Hence, giving a

ConnectionError: HTTPConnectionPool(host='localhost', port=4040): Max retries exceeded with url: /api/tunnels (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7c1f67e215a0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment