Source: github.com/dntai/resyslab_utils
- Create a SSH key for GitHub by the Ed25519 algorithm. (Note: Setting the types of passwords is not necessary. So press Enter to skip them all.)
ssh-keygen -t ed25519 -C "[email protected]"
- At /your_user/.ssh, copy the content in id_ed25519.pub and add to your GitHub account.
- Open Terminal at /your_user/.ssh and run the following command.
cat id_ed25519 | base64
- Then add the result to the Secrets section of Kaggle. (Reference: Feature Launch: User Secrets)
- Create a SSH key for Kaggle by the RSA algorithm. (Note: Setting the types of passwords is not necessary. So press Enter to skip them all.)
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
- At /your_user/.ssh, copy the content in id_rsa.pub and add to the Secrets section of Kaggle.
- Create a ngrok account.
- Afterwards, copy the ngrok token at Getting Started/Your Authtoken and add it to the Secrets section of Kaggle.
- Run all cells in examples/kaggle_enfit23_setup.ipynb. The results like that:
- Click Open a Remote Window at the bottom left corner of the VSC window.
- Click Connect to Host and paste a content like that:
[email protected]:18364
In which, the content after @ is taken from the result of cell start_ngrok.
-
Click Continue.
-
Click Open.
-
Choose /kaggle/working and click OK.
- Complete and start to code!!!
- Hoàng Đông Phạm. Introduction to ngrok. YouTube.
- Xuanthulab. Introduction to SSH. YouTube.
- Ký sự AI. Cấu hình VS Code để lập trình trên server bằng Remote - SSH. kysuai.com
- Kaggle. Feature Launch: User Secrets. kaggle.com.
- convergeML. How to run Google Colab or Kaggle notebooks on VSCODE. YouTube.
- Abhishek Thakur. VS Code (codeserver) on Google Colab / Kaggle / Anywhere. YouTube.