我有为我的git帐户配置ssh密钥。,然而,我仍然不成功,。这是成绩单。
[John@dev gitRepo]$ ssh -T git@github.com
Hi JohnDoe! You've successfully authenticated, but GitHub does not provide shell access.
[John@dev gitRepo]$ git remote update
Fetching origin
Username for 'https://github.com':
据我所知,响应ssh尝试的消息是成功的。但是,在正确设置ssh
从命令行(通过https,而不是ssh)使用GitHub启动一个推送或任何其他操作,调用用户名和密码不仅会失败,而且当它失败时,它会返回
Username for 'https://github.com': username
Password for 'https://username@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/username/repository.git/'
我
由于在推送我的私人项目和我的工作项目之间移动,我经常面临身份验证问题。每次我从工作上下文转移到个人上下文时,我都会花一些时间处理我的ssh密钥和配置。我经常阅读有关生成ssh公钥并将其添加到站点的github文档。
今天,我得到了:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我尝试生成一个新的ssh密钥对并将公钥提交给github
在过去的三周里,我一直在使用OSX密钥链来管理我的GitHub凭据。每当我需要更新时,我都会照常做:
git pull origin master
使用此命令,键链将弹出并请求我输入的密码,然后执行在命令行中输入的命令。
今天早上突然间,我又去做了另一个修改,它现在在命令行中询问我的用户名和密码。然后我得到了通常的错误:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see
我无法通过HTTPS和SSH将工作推送到我公司的git存储库,并且非常感谢在这方面的任何帮助。这与这里看到的问题类似:(),只不过我是在推动公司回购,而不是个人回购--想知道这是否与公司防火墙有关。
下面是我所做的工作(在克隆了回购程序之后):
对SSH:
git remote set-url origin [SSH url of my company repo]
设置我的ssh密钥并将其添加到我的用户帐户;ssh到git@github.com给我拒绝的权限(公开密钥),但是ssh到git@git.soma.company.com的身份验证是成功的。
git pull
git push ori
我试着从github原点开始使用git pull,得到了以下信息:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
而不是promt的用户名和密码。我的~/.ssh/文件夹是空的,所以我搞不懂publickey在这里是什么意思。
git是如何决定是否要求用户名/密码的?我怎么能强迫他这么做呢?(我不想因为某种原因使用ssh键)
我正在尝试用capifony (capistrano) symfony2应用程序制作我的网站。
一切都进行得很顺利,但在某一时刻,它询问了吉特布私人回购的凭证。
这是我的错误
out ::web-dev.domain.com无法获取,输入您的GitHub凭据以访问私有repos ** out ::web-dev.domain.com凭据将被交换为存储在/home/webdev/..composer/config.json中的OAuth令牌,您的密码将不会被存储** out ::web-dev.domain.com以撤销对此令牌的访问权限,您可以访问 ::web-dev.domain.com用
我有几个存储库,显然是使用了GitHub密码身份验证的缓存版本。我最近才了解到这一点,因为GitHub不再支持密码,而是需要个人访问令牌(PAT)或SSH密钥。
在拉或推时,我将得到所有私有存储库的以下消息:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requ