使用Git时,通常使用命令行。以便将更改推送到服务器。我使用以下命令将公钥添加到SSH会话中:
$ eval "$(ssh-agent -s)"
ssh-add "D:/Dev/Books Spaces/Version Control with Git and GitHub/SSH/key"
Enter passphrase for D:/Dev/Books Spaces/Version Control with Git and GitHub/SSH/key:
Identity added: D:/Dev/Books Spaces/Version Control with Git and GitHub/SSH/key (me*****[email protected])
由于ssh密钥不是标准密钥(在中%USERPROFILE%\.ssh\id_rsa
),因此您需要制作一个%USERPROFILE%\.ssh\config
文件以引用所述密钥
Host github
Hostname github.com
User git
IdentityFile "D:/Dev/Books Spaces/Version Control with Git and GitHub/SSH/key"
然后尝试原始远程URL github:xxxx/tacos01.git
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句