我需要帮助如何链接我的ssh密钥到ssh代理。
在生成我可以查看的保存在(Mykey)上的密钥时,代码会在bash终端窗口中显示生成的位置。
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/user/.ssh/id_rsa): mykeys
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in mykeys
Your public key has been saved in mykeys.pub
The key fingerprint is:
SHA256:/DEK8rKIlb+j1aEVWL3jYG5I0dcuYk4DoKuxrHiGOws user@OshimiriAtata1在我所有的考验中,我一直在犯的错误是:
No such file or directory我已经按照指示,我得到的各种YouTube视频,我目前正在看,但不知道是什么问题。
我尝试了以下几点:
ssh-add \~/.ssh/id_1895
ssh-add ..ssh/id_1895`your text`
ssh-add .ssh\\id_1895
ssh-add \~/.ssh/id_rsa`your text`
ssh-add \~/.Henry/.Data-set/.ssh_mykeys一切都没有结果。
你能帮帮我吗?
发布于 2022-04-06 06:43:22
在"Generating a new SSH key and adding it to the ssh-agent“之后,命令如下:
sh-add C:\path\to\mykeys您需要一个~/.ssh/config文件
Host gh
Hostname github.com
User git
IdentityFile C:\path\to\mykeys测试这是否适用于:ssh -Tv gh,您应该会看到一条类似于:
Hi *****!
You've successfully authenticated, but GitHub does not provide shell access.您可以将URL与以下命令一起使用:
git clone gh:myGitHubUser/myRepositoryhttps://stackoverflow.com/questions/71750303
复制相似问题