120 字
1 分钟
页面浏览--访问次数--
使用ssh连接git服务

生成密钥#

ssh-keygen -t rsa -C "你的邮箱",然后一路回车,前往~/.ssh目录下查看密钥 打开id_rsa.pub文件,复制下来,前往[https://github.com/settings/keys]点击New ssh key,填写你刚刚复制的公钥内容,完成

测试#

连接ssh进行测试

Terminal window
ssh git@github.com

返回结果

Terminal window
PTY allocation request failed on channel 0
Hi lijiashuai111! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.

完成,你现在可以使用ssh来进行克隆,拉取等操作了

使用ssh连接git服务
https://blog.bear556.top/posts/使用ssh连接git服务/
作者
br
发布于
2024-09-15
许可协议
CC BY-NC-SA 4.0

分享文章

生成精美分享图或复制链接,与更多人分享本文。

继续阅读

沿着主题读

基于共同的标签与分类

换条路线

从其他文章中稳定抽取

评论

正在加载评论...

最后更新于 ,距今已过 678 天

部分内容可能已过时