我使用Deployer将项目克隆到服务器上,但尽管设置了部署键,但由于某种原因,通过SSH克隆失败:
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-keygen -t rsa -b 4096 -C "your_email@example.com",
我将SSH密钥与我的Win10机器和Github帐户配对,它正在使用Bash,但今天我通过WSL安装了ZSH (噢- my ),现在当我试图推送时,我看到了下一个错误:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
在ZSH中
ssh -T -ai ~/.ssh/id_rsa git@github.
这是我的代码giltlab-ci.yml:
before_script:
##
## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image)
##
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
##
## Run ssh
我不得不创建一个新的RSA密钥推到Heroku。我删除了旧密钥,并在~/.ssh/中添加了一个新密钥。
然而,尽管如此,Heroku仍然给了我以下错误:
! Your key with fingerprint 83:3c:2c:45:81:5a:71:d7:40:2e:bf:fd:b7:e5:63:e2 is not authorized to access my_server.
我查看了~/.ssh中存在的每一个密钥,并将它们的指纹与Heroku抱怨的指纹进行了比较。只有一个人有这个指纹,那是旧钥匙。所以我把它删除了。
奇怪的是,即使在删除了密钥之后,我仍然继续从Heroku获得同样的错误
像其他许多人一样,我试图让我的应用程序推送到Heroku,但一直收到这个错误
$ heroku login
Enter your Heroku credentials.
Email: my@email.com
Password (typing will be hidden):
Found existing public key: /Users/scotty/.ssh/id_rsa.pub
Uploading SSH public key /Users/scotty/.ssh/id_rsa.pub... done
Authentication successful.
$ git push he
我在PuTTY上生成了两个键:公共密钥和私有密钥。在windows上使用这个软件,我可以像往常一样连接到服务器。
然后,我尝试在我的ubuntu机器(21.04)中复制这些文件,并登录到加载私钥(打开putty,编写user@hostname,然后在SSH>Auth加载私钥),但是无法连接被服务器拒绝,因为这个错误说:
Unable to load key file '~/private_key.ppk' (PuTTY key format too new).
一个新兴的窗口似乎在说:
No supported authentication methods availa
在VSCODE中提示输入SSH密码时,我复制了一个错误的SSH密码,由于选中了“保存”复选框,所以它被保存。现在我不能和吉特布同步了。
有没有办法在VSCODE中更新错误的密码?我搜索了设置并搜索了一下,但是找不到方法。
这是git日志
> git pull --tags origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
我是新使用GitHub的。我试图从用户回购中克隆我的第一个文件。我一直收到这个错误:
Permission denied (publickey). fatal: Could not read from remote repository
当我通过以下命令检查公钥是否附加到我的GitHub帐户时:
ssh-add -1
我得到了一个错误:The agent has no identities.
我也试过这样做:ssh-add ~/.ssh/id_rsa
它告诉我:Identity added
我还确保我的笔记本电脑的SSH密钥被添加到我的GitHub帐户。我错过了什么步骤?
我扫描过互联网-我迷
我是OpenShift上的新手,我对它有问题,
当我这样做的时候
rhc app git-clone mynewapp
Your public ssh key must be uploaded to the OpenShift server. Would you like us to upload it for you? (yes/no) yes
You can enter a name for your key, or leave it blank to use the default name. Using the same name as an existing key will