Permission denied (publickey,gssapi-with-mic). fatal: Could not read from remote repository.

在线体验各类最新模型,更有模型 免费Token 额度领取!
立即体验
简介: Permission denied (publickey,gssapi-with-mic). fatal: Could not read from remote repository.

这两天电脑进水了,换了台笔记本电脑,配置好 git 的 ssh 之后,发现还是无法从远端仓库拉取代码,提示 Permission denied (publickey,gssapi-with-mic). fatal: Could not read from remote repository.后来发现有些 mac 系统不支持 rsa 算法,需要在 .ssh/config 增加一些配置才行

Permission denied (publickey,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

在 .ssh/config 中添加如下配置

Host *
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa


相关文章
|
安全 网络安全 开发工具
git 提示:fatal: Could not read from remote repository.
git 提示:fatal: Could not read from remote repository.
2504 0
git 提示:fatal: Could not read from remote repository.
|
数据安全/隐私保护 iOS开发 MacOS
|
Linux C语言
LINUX error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
LINUX error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
1742 0
LINUX error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
|
5月前
|
人工智能 自然语言处理 Shell
2026最新:OpenClaw对接阿里云百炼API图文教程,代码 + 配置全解析
2026最新OpenClaw(原Moltbot/Clawdbot)对接阿里云百炼API保姆级教程:含安装、环境变量配置、JSON配置详解及qwen3-max等模型调用验证,支持Coding Plan套餐,新客首月仅0.3元/天。
2608 1
|
分布式计算 Hadoop Linux
Centos7配置Hadoop出现Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)的解决
Centos7配置Hadoop出现Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)的解决
2679 0
|
资源调度 JavaScript API
Vue-treeselect:为Vue应用程序提供强大选择器的指南
Vue-treeselect:为Vue应用程序提供强大选择器的指南
2943 0
|
机器学习/深度学习 存储 人工智能
2025年NVIDIA RTX 4090云服务器租赁价格与选型指南
本文探讨了在主流云服务商尚未提供RTX 4090实例的背景下,如何选择高性能GPU服务器。分析了市场现状、替代方案性能,并推荐阿里云的GN7i(NVIDIA A10)、GN6v(NVIDIA V100)等实例,提供了成本优化策略与选型建议,确保用户在AI训练、图形渲染等场景中实现效率和成本的最佳平衡。
|
网络协议 Linux 网络安全
docker centos镜像 npm安装包时报错“npm ERR! code ECONNRESET”
通过上述步骤,您可以有效解决在 Docker 中使用 CentOS 镜像安装 npm 包时遇到的 "npm ERR! code ECONNRESET" 错误。希望这些方法能帮助您顺利进行 npm 包的安装。
1272 26
|
网络安全 开发工具 git
mac git clone命令提示git@gitee.com: Permission denied (publickey).问题修复
mac git clone命令拉取gitee上项目代码时提示密钥问题
1428 19
|
消息中间件 Java Kafka
SpringBoot中使用异步方法优化Service逻辑,提高接口响应速度
异步方法适用于逻辑与逻辑之间可以相互分割互不影响的业务中, 如生成验证码和发送验证码组成的业务, 其实无需等到真正发送成功验证码才对客户端进行响应, 可以让短信发送这一耗时操作转为异步执行, 解耦耗时操作和核心业务;