相关疑难解决方法(0)

如何找到RSA密钥指纹?

我需要为GitHub进行SSH密钥审核,但我不确定如何找到我的RSA密钥指纹.我最初按照指南在Linode主持的Ubuntu 10.04(Lucid Lynx)盒子上进行设置.

如果使用PuTTY远程登录,我需要输入什么命令来查找当前的RSA密钥指纹?

ssh rsa ssh-keys

874
推荐指数
10
解决办法
60万
查看次数

为什么我的SSH密钥不能用于连接到github?

注意:我不是一个新手,我已经做了很多次,但由于某种原因,今天它决定不工作.

Permission denied (publickey).尝试通过SSH连接到github或尝试克隆存储库时,我不断收到错误消息,即使在重新生成ssh密钥并将其添加到我的帐户中的"SSH密钥"之后也是如此.

这是我今天尝试做了十次没有成功的事情:

  1. 使用ssh-keygen制作密钥.
  2. 用Gedit或Notepad ++打开〜/ .ssh/id_rsa.pub并复制内容.
  3. 转到github.com上的帐户设置
  4. 转到SSH密钥
  5. 单击"添加密钥"按钮.
  6. 给钥匙一个标题
  7. 将密钥粘贴到密钥框中.
  8. 保存密钥(输入我的github密码进行验证).

现在,当我尝试这样做ssh github.com时,它将无法工作......世界上有什么?我现在太累了还是我错过了什么?

这是来自的输出 ssh -vvv github.com

OpenSSH_5.9p1, OpenSSL 1.0.0f 4 Jan 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [207.97.227.239] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/trusktr/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/trusktr/.ssh/id_rsa type 1
debug1: identity file /home/trusktr/.ssh/id_rsa-cert type -1
debug1: identity file …
Run Code Online (Sandbox Code Playgroud)

ssh github ssh-keys

51
推荐指数
4
解决办法
6万
查看次数

Jenkins:Credentials中私钥的正确格式是什么

我正在Windows Server 2016上运行的Jenkins 2.152中创建一个工作,需要从bitbucket.org上托管的git repo中提取.我通过git-bash测试了ssh密钥,所以我知道它有效并且没有密码短语.当我尝试使用与Jenkins完全相同的私钥时,我收到一条错误消息.

Failed to connect to repository : Command "git.exe ls-remote -h 
git@bitbucket.org:mygroup/myrepo HEAD" returned status code 128:
stdout: 
stderr: Load key 
"C:\\Users\\JE~1\\AppData\\Local\\Temp\\ssh2142299850576289882.key": invalid format 
git@bitbucket.org: Permission denied (publickey). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

凭据设置为

 scope: Global
 user: git
 Private Key -> Enter Directly -> copy and past - generated by ssh-keygen -t rsa in gitbash
 Passphrase: empty
 ID: empty
 description: bitbucket.org …
Run Code Online (Sandbox Code Playgroud)

git ssh bitbucket jenkins

10
推荐指数
4
解决办法
6181
查看次数

标签 统计

ssh ×3

ssh-keys ×2

bitbucket ×1

git ×1

github ×1

jenkins ×1

rsa ×1