回答“是”到Google Colaboratory的终端 [英] Answer "yes" to terminal on Google Colaboratory

查看:508
本文介绍了回答“是”到Google Colaboratory的终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Google Colaboratory从Github中克隆,我使用的命令是:

 !git clone git@github.com:CliMT / climt.git 

但我收到以下内容:

 克隆到'爬'... 
主机'github.com(192.30.255.112)'的真实性'不能成立。
RSA密钥指纹是SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8。
您确定要继续连接(是/否)吗?

但是由于这是Google Colaboratory,我不能在终端上输入yes p>

我能做什么?

谢谢!

解决方案

如果您只需要公共读取权限,您可以使用https:
!git clone https://github.com/CliMT/climt.git



如果您使用SSH,因为您拥有计划从colaboratory运行时写入该github repo,然后您必须手动设置SSH密钥并可能设置known_hosts文件。
或脚本使用类似 https://pexpect.readthedocs.io/键入yes en / stable /


(FTR注意警告不是专用于实验室的: https://help.github.com/articles/testing-your-ssh-connection/


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

!git clone git@github.com: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!

解决方案

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/)

这篇关于回答“是”到Google Colaboratory的终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆