1. 缘起与快速解决办法1.1 现象表现昨天将自己的MBP升级到了Ventura。再用ssh连接服务器(ubuntu20.04)的时候,直接报错了。 ssh xx yy@xx, Permission denied (publickey)为了方便,我配置了免密码登陆,在 ~/.s…
问题描述工作电脑是 macOS Ventura ,需要连接gitlab仓库,下载安装git并初始化配置后,按照操作生成SSHkey后,连接远程仓库仍然报错 提示 Permission denied (publickey) 。 定位问题经过查证,macOS Ventura 内置使用了 OpenSSH_9.0p1,根据 OpenSSH 发行说明 可以得知,从 OpenSSH 8.8/8.8p1 版本开始,就默认关闭了 ssh-...
git@**.**.**.**: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 重新用ssh-keygen生成ssh key后,依然报错。但是试了github是可以正常拉取和推送代码的。 解决方法 后面发现是ssh-keygen的...
debug1: Trying private key: /Users/pantierui/.ssh/id_dsa debug1: Trying private key: /Users/pantierui/.ssh/id_ecdsa debug1: Trying private key: /Users/pantierui/.ssh/id_ed25519 debug1: No more authentication methods to try. Permission denied (publickey). 因为ssh会找id_rsa和id_rsa.pu...
在~/.ssh/config配置文件中增加以下配置即可解决 Host * HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa 原文(https://superuser.com/questions/1749364/git-ssh-permission-denied-in-macos-13-ventura)©著作权归作者所有,转载或内容合作请联系作者 1人点赞 日记本 更多...
mac下面默认使用的key是~/.ssh/id_rsa 你也可以制定私钥文件例如 ssh -i /backup/home/user/.ssh/id_dsa user@yoursite.com 查看关于私钥文件的配置,请查看 vi ~/.ssh/config 有用1 回复 wTracyLiu: 时隔一年啊~ 当时这个问题在stackoverflow上也问了,记得好象是一些文件夹权限和key的文件名的问题,后来...
其实只需要通过ssh-add把key添加到authentication agent就可以了。 ➜ ~ ssh -T git@github.com Permission denied (publickey). ➜ ~ ssh-add .ssh/id_rsa Identity added: .ssh/id_rsa (.ssh/id_rsa) ➜ ~ ssh -T git@github.com Hi myname! You've successfully authenticated, but GitHub ...
以下用户的用户个人资料: shiqiang1 shiqiang1作者 用户级别:级别 1 5 积分 ...
如果是使用了基于 SSH 协议的相关指令,也会发生错误。比如使用 git clone 、git pull 等去同步基于 SSH 地址的 git 仓库代码时,会提示 Permission denied (publickey) 。 定位问题 经过查证,macOS Ventura 内置使用了 OpenSSH_9.0p1,根据 OpenSSH 发行说明 可以得知,从 OpenSSH 8.8/8.8p1 版本开始,就默认关闭...
比如使用 git clone、git pull 等去同步基于 SSH 地址的 git 仓库代码时,会提示 Permission denied (publickey) 。 定位问题 经过查证,macOS Ventura 内置使用了 OpenSSH_9.0p1,根据 OpenSSH 发行说明 可以得知,从 OpenSSH 8.8/8.8p1 版本开始,就默认关闭了 ssh-rsa 算法。那么 macOS Ventura 内置使用的 Open...