升級(jí)到macOS最新系統(tǒng)Ventura,發(fā)現(xiàn)通過(guò)ssh方式拉git代碼報(bào)錯(cuò)“Permission denied, please try again.”
解決方法就是刪除原來(lái)生成的ssh公鑰和私鑰,重新生成
ssh-keygen -t ed25519 -C "這里替換你的賬號(hào)用戶名"
具體原因見(jiàn):https://superuser.com/questions/1749364/git-ssh-permission-denied-in-macos-13-ventura