我遵循github指南()到ssh代理转发。
$ ssh -T git@github.com
Attempt to SSH in to github
Hi username! You've successfully authenticated, but GitHub does not provide
shell access.
此命令在本地和服务器上都可以使用。但是,当我在服务器上尝试git拉(或其他与github相关的命令)时,它仍然要求我输入我的登录名和密码。
这个问题可能是因为我没有在本地服务器上使用相同的用户名吗?还是我错过了别的什么?
当地: ubuntu 11.10
当我做以下事情时:
$ git pull origin master
它返回:
Permission denied (publickey).
fatal: Could not read from remote repository.
根据GitHub指令,我验证了以下内容:
1)使用以下命令创建密钥:
ssh-keygen -t rsa -b 4096 -C "myemail@gmail.com"并将其命名为GitHub,返回:
Your identification has been saved in GitHub.
Your public key has been save
我正在尝试在我的Ansible剧本中执行一个git克隆命令。看起来是这样的:
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
tasks:
- name: check out a git repository
git: repo={{ repo_url }} dest=/Dest/For/Cloning/ accept_hostkey=yes
vars:
repo_url: git@github.com:lorin/mez
我的本地计算机正在使用win10 ( gitbash客户端),在本地存储库和github远程存储库可以通过ssh在双向(拉/克隆或推等)正常通信之前,但这一次当我拉出远程代码在本地更新时,会出现错误。
git pull origin main
Connection reset by 140.82.112.4 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
然后,我尝试使用下面的
当我通过本地计算机连接到服务器时,我可以使用ssh成功地连接到Github。
我使用教程来设置ssh键。
但是,在使用Github操作时,我会得到以下错误:
err: git@github.com: Permission denied (publickey).
err: fatal: Could not read from remote repository.
err:
err: Please make sure you have the correct access rights
err: and the repository exists.
这是我的吉顿行动YML:
name: CI A
我有两个帐户Github (UserA和UserB)
我有两个项目(projectA E ProjectB)
两者(私有)
我有三台服务器(服务器A、ServerB、本地)
在服务器A中,我有ProjectA,我可以执行推送、合并、提交等操作。
root@UserA:~/.ssh# ssh -T git@github.com
Hi UserA! You've successfully authenticated, but GitHub does not provide shell access.
在服务器B中,我有ProjectB,我可以执行推送、合并、提交等操作。
root@User
我一直在阅读其他的,没有发现错误,但仍在努力解决我遇到的问题。
我正在做一个本地回购,推到一个由Forge监视的遥控器上,并在更新主分支时部署到生产中。它不是部署我正在推动的改变!我已经做了4个贡献,但还没有在网站上实现。我还尝试通过deploy按钮从Forge内部手动部署代码,但这也不起作用。我得到的错误是附加和下面。
Fri Jun 29 08:30:42 UTC 2018
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the cor
请帮助!我有三个免费的私有存储库可以在我的windows 10计算机上正常工作,我刚刚创建了一个新的第四个存储库,这与我在创建前三个存储库时所执行的步骤相同;但是当我尝试对这个新存储库进行第一次推送时,我得到了如下结果:
> identity_sign: private key /c/Users/EBC/.ssh/id_rsa contents do not match public
git@github.com: Permission denied (publickey).
> fatal: Could not read from remote repositor