Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Answer "yes" to terminal on Google Colaboratory

I'm trying to clone from Github using Google Colaboratory, the command I'm using is:

!git clone [email protected]:CliMT/climt.git

But I get the following:

Cloning into 'climt'...
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)?

But since this is Google Colaboratory, I can't type "yes" to the terminal.

What can I do?

Thanks!

like image 773
ValientProcess Avatar asked Oct 28 '25 16:10

ValientProcess


1 Answers

If you only need public-read access you can replace SSH access with https: !git clone https://github.com/CliMT/climt.git

If you're using SSH because you have plans to write to that github repo from the colaboratory runtime then you'll have to set up SSH keys and probably a known_hosts file manually. Or script typing "yes" using something like https://pexpect.readthedocs.io/en/stable/

(FTR note the warning isn't colaboratory-specific: https://help.github.com/articles/testing-your-ssh-connection/)

like image 154
Ami F Avatar answered Oct 31 '25 07:10

Ami F



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!