我有一个问题,似乎是关于GitHub使用的SSH密钥的格式。我使用生成一个新的SSH密钥:
$ ssh-keygen -t rsa -C "youremail@youremail.com"
然后,我在GitHub帐户页面的设置中将密钥复制到SSH部分。不过,随附的发出通知书如下:
Key is invalid. It must begin with 'ssh-ed25519', 'ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384
当我试图提交到GitHub时,我会得到一个
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
幸运的是,help.GitHub有 --我浏览了这个指南,发现ssh-add -l -E md5返回了指南,我做到了。之后,ssh-add会像预期的那样返回类似于2048 MD5:a0:dd:42:3c:5a:9d:e4:2a:21:52:4
我一直在阅读其他的,没有发现错误,但仍在努力解决我遇到的问题。
我正在做一个本地回购,推到一个由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
我正试图上传我在Github.com的第一个项目,因为我遵循以下步骤:
在安装过程中生成一个新的SSH密钥
打开Git Bash$ ssh-keygen -t rsa -b 4096 -C "myemail@example.com" (此命令正常工作)
输出:
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/abc/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same
我们在jenkins上使用SSH密钥从我们的远程Git克隆。它工作得很好。我们使用git插件,使用SSH凭据,并且我们能够克隆存储库。
但是,当我们在稍后阶段执行以下命令时,它将失败:
git pull origin master
它抱怨的是:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
该命令似乎不再使用我们的SSH凭据。如何使
我正在尝试用WinSCP自动化备份过程。我正在尝试设置一个WinSCP脚本,但我在SSH身份验证方面遇到了问题。
我的剧本很简单:
# Connect to SFTP server using a password
open sftp://myusername:mypw@mywebspace.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx...="
# Upload file
put C:\pic.jpg /backup/
# Exit WinSCP
exit
我遇到麻烦的部分是-hostkey开关。我用PuTTYgen生成了一个密钥,并将其保存
这是我收到的错误:
no such identity: /home/eduan/.ssh/id_dsa: No such file or directory
no such identity: /home/eduan/.ssh/id_ecdsa: No such file or directory
Permission denied (publickey).
这就是当我试图推送,或者在这种情况下,当我做ssh -T git@github.com时发生的事情。
我正确地生成了id_rsa和id_rsa.pub文件。
我该怎么解决这个问题?我使用的是和E17 BTW。
编辑
@kortix会为此做
尽管我采纳了我在互联网上能找到的所有建议,但GitHub对我来说还是失败了。
下面是我的.ssh目录和键的权限。我已经将私钥权限更改为600,公钥更改为644,目录更改为700。
drwx------ 2 user user 4096 Jan 15 19:20 .
drwxr-xr-x 37 user user 4096 Jan 15 19:16 ..
-rw------- 1 user user 484 Dec 11 05:55 id_ed25519
-rw-r--r-- 1 user user 114 Dec 11 05:55 id_ed25519
我在使用ssh连接到github时遇到了问题。
我在我的项目中配置了一个遥控器,我看到它使用git remote -v。
当我执行命令git push origin master时
错误是:
$ git push origin master
ERROR: Repository not found.
fatal: could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
我该如何解决这个问题?
非常感谢。
当我试图访问我的一个存储库时,我突然收到消息; ERROR: Permission to REPOSITORY_A denied to deploy key
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. 经过一些搜索之后,我运行了ssh git@github.com,这给出了消息 Hi USERNAME/REPOSITORY_B! You've successfully authe
我正在建立一个有数字水滴的laravel网站。这个过程既困难又令人沮丧,我失去了逻辑思维.我连接到一个与github连接的ssh键,因为我尝试了下面的代码来测试我的连接:
ssh -T git@github.com
以此作为回应:
> Hi (My name)! You've successfully authenticated, but GitHub does not
> provide shell access.
所以它是相连的。然而,当我想要克隆我的存储库到我的在线滴。我知道错误:
git@github.com: Permission denied (publicke