ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

创建sshkey并链接git

创建sshkey并链接git

以 Hugging Face 账户为示例:

生成ssh key到指定文件

ssh-keygen -t rsa -C "email.com" -f C:\Users\Administrator\.ssh\huggingface

将生成的key放到hugging_face上

https://huggingface.co/settings/keys

window powershell:

Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
ssh-add C:\Users\Administrator\.ssh\huggingface
ssh-add -l

建立ssh配置

# open
"C:\Users\Administrator\.ssh\config"
# add content
Host hf.co huggingface.coHostName hf.coUser gitIdentityFile C:/Users/Administrator/.ssh/huggingfaceIdentitiesOnly yes
返回列表