Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Git在SSH配置的时候出现的一些经验分享 #3

Open
Owen2005-brilliant opened this issue Sep 11, 2024 · 1 comment
Open
Labels
Experience Sharing Sharing of problem solving process

Comments

@Owen2005-brilliant
Copy link

在配置SSH环境的时候,可能会遇到如下问题:
首先,SSH的配置是在下载的Git里面的Git Bash去输入教程当中的指令
其次,在直接打开Git Bash输入指令的时候,可能会出现一下这个报错:
问题1
这个的原因是因为在电脑中没有相应的文件去保存这个key,因此,解决方法是:
在你的C:\Users\‘你的用户名’ 所在页面中,创建一个后缀为.ssh的文件夹,然后点进进入这个文件夹,直接在这个文件夹下,右键显示更多选项打开git bash,输入指令: cd ~/.ssh/
然后,按照教程里面的三步,分别去输入三条指令,一路点击回车即可。
然后再回到你创建的.ssh文件夹中,就可以找到 id_rsa.pub这个文件了。

@Tenth-crew
Copy link
Collaborator

感谢这位同学的贡献,但是有些细节问题表述的不是很清楚。如果已经在 .ssh 文件夹下,右键显示更多选项打开git bash 此时已经在 .ssh 目录下,不需要再通过cd命令进行.ssh文件夹。在该目录下按照教程应该可以正常保存密钥文件了

@Tenth-crew Tenth-crew added the Experience Sharing Sharing of problem solving process label Sep 11, 2024
@Tenth-crew Tenth-crew changed the title 关于Git在SSH配置的时候出现的一些问题解答 关于Git在SSH配置的时候出现的一些经验分享 Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experience Sharing Sharing of problem solving process
Projects
None yet
Development

No branches or pull requests

2 participants