English 中文(简体)
要求认证
原标题:Git keeps asking for authentication

我在Gite Hub有私人回响,储存我的节目说明和演习。

我使用两台电脑来查阅我的邮袋:我的个人笔记本和我的工作电脑。

根据Gite Hub的文献,为了避免每次你想要从原产地推向或从原产地索取全权证书,你应使用<代码>g authlogin的指令,并一劳永逸地这样做。

这与我的常设仲裁法院合作,但似乎与我的工作电脑相提并论:事实上,尽管根据Gite Hub的新安全控制,我与我的常设仲裁法院有过联系,但工作队一直要求我对上述假设情景进行认证。

注:我看一看一个问题可能是高频通信系统。 Well,我不认为如此,因为我用手提的手提,用手提的手提来打上手提,这样......。

提前感谢!

问题回答

我的猜测是,你可能错过了一步,而把你的吉苏卜联系起来。

遵循以下指示(从here),在每次不需进入全权证书的情况下,将你的当地Gite与Github和SSH公司正确联系起来。 (假定你已经创建了“吉布”账户。) 请看到你错失了哪些步骤。

Step 1: Initialise Git credentials in your CLI

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

如果你选择使用私人Gite Hub电子邮件地址,第二指挥部将研究这样的情况:

git config --global user.email "[email protected]"

接手使用你自己的私人Gite Hub电子邮件。

核实货物正在妥善工作,进入这些指挥部,核实产出是否与你的姓名和电子邮件地址相符。

git config --get user.name
git config --get user.email

<macOS> 用户:维持这两条指令,以显示忽略<条码>的意思。 .DS_Storefiles are notvisible to theuser and hold Customs属性或元数据(如thumbnails) for the chainer,如果你不召集Gite Hub无视这些特性,则石天空编码。

echo .DS_Store >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global

Step 2: Create an SSH Key

吉特赫特赫特利用SSH钥匙,允许你上下载到您的存放处,无须在您的用户名和密码上打上字。

First, we need to see if you have an Ed25519 algorithm SSH key already installed. Type this into the terminal and check the output with the information below:

ls ~/.ssh/id_ed25519.pub

If a message appears in the console containing the text “No such file or directory”, then you do not yet have an Ed25519 SSH key, and you will need to create one. If no such message has appeared in the console output, you can proceed to step 3.

To create a new SSH key, run the following command inside your terminal. The -C flag followed by your email address ensures that GitHub knows who you are.

ssh-keygen -t ed25519 -C <youremail>

Don t include the angle brackets. When it prompts you for a location to save the generated key, just push Enter. Next, it will ask you for a password; enter one if you wish, but it’s not required.

Step 3: Link Your SSH Key with GitHub

现在,你需要告诉Gite Hub,你的SSH钥匙是什么,以便你能够在不时打字的情况下推动你的代码。

首先,你向Gite Hub接收我们SSH钥匙的航道。 进入Gite Hub,并点击右角的照片。 接着,点击了倒塌的菜单中的情况。

其次,在左边,点击SSH和GPG钥匙。 接着,将绿 but点点点点点点点点点上了新SSH Key。 指的是你描述的足够重要内容,以便你记住它来自何处。 在你采取下一步行动时,离开这个窗口。

现在,你需要复制你的公众人物。 为了做到这一点,我们将使用一个称为“cat”的指挥系统,把档案读到青少年。 (请注意:在本案中,共和国档案延期很重要)。)

cat ~/.ssh/id_ed25519.pub

突出并抄录产出,其起点是sh缩25519,最后用你的电子邮件地址。

如今,在你们的浏览器窗口中回到Gite Hub,把你 co到关键领域。 然后点击Add SSH钥匙。

Step 4 : Testing your key

遵循本条的指示,从Git/2007/5/a>,以核实你的SSH联系 (Don'tabe omit the$ when Youcop and paste the Code!) 您请在座标上看到这一答复:Hiusername! You've获得成功认证,但Gite Hub没有提供通行证。 Don't 让Gite Hub无法提供空壳。

它确实行之有效。 详细解释。 谢谢。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the ...

Role/Permission based forms authorizing/authentication?

While looking into forms authorizing/authentication, I found that it is possible to do role based authorizing by adding an array of roles to a FormsAuthenticationTicket. That way I can write User....