note_25:git的双因素身份认证和SSH Key的生成

本文介绍如何在GitLab中设置双因素身份认证,并详细指导生成SSHKey的过程。对于双因素认证,推荐使用Google身份验证器;对于SSHKey生成,则提供了具体的步骤说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

gitlab的双因素身份认证和SSH Key的生成


参考



1. gitlab双因素认证

安卓手机可以在豌豆荚上找到google身份验证器并下载,打开之后会有弹框让你装Google Play,其实装了也是没用的,因为装完再扫gitlab上的二维码认证也是不可能成功的。所以就不要装了,可以直接手动输入账号和认证信息的,在二维码旁边有个对话框,有写要输入的内容,通常是一大串,复制到手机上粘贴上去就好了。之后会获得动态的pin码,输入到网页上的Pin Code就行了。


2. SSH Key生成

按照如何生成SSH key的步骤,中间会让你输入两次passphrase,其实不输入直接回车也没有影响。

在C盘->用户->用户名>.ssh目录下找到id_rsa.pub,直接把文件拖到SSH Keys的输入框里面,然后浏览器会自动开一个页面打开这个文件,复制粘贴就行了。


回答: 根据提供的引用信息,这个错误是在运行一个叫做“webui-user.bat”的文件时出现的。错误提示表明程序试图安装名为“open_clip”的包,但是安装失败了。具体的错误信息如下:Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ error: RPC failed; curl 18 HTTP/2 stream 3 was not closed cleanly before end of the underlying stream fatal: expected flush after ref listing error: subprocess-exited-with-error git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ did not run successfully. exit code: 128 See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. [1] 同时,在引用中提到了一种可能的解决方法。您可以先输入 cd ~/.ssh 查询.ssh文件,如果找不到的话就直接创建一个,输入 mkdir ~/.ssh,然后设置账号邮箱,输入git config --global user.name '账号名' git config --global user.email '邮箱',接着输入 ssh-keygen -t rsa -C '邮箱' 生成公钥。提到了在执行git clone https://github.com/Stability-AI/stablediffusion.git命令时无法下载Stable-Diffusion-Stability-AI库的问题。这个错误是由于PyPI的问题导致的,可能与pip无关。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [【Stable Diffusion】安装过程中常见报错解决方法](https://blog.youkuaiyun.com/Bankcary/article/details/131237002)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* [github报错:git@github.com: Permission denied (publickey).fatal: Could not read from remote repository](https://blog.youkuaiyun.com/waitle500/article/details/122960022)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值