SSH``` git:(main) git push -u origin mainERROR: Repository not found.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. git:(main) git pull originConnection closed by 198.18.0.138 port 22fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
1
git:(main) git push -u origin mainERROR: Repository not found.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. git:(main) git pull originConnection closed by 198.18.0.138 port 22fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
1. 在本地,不同账号生成不同的公私钥对,也就是文件名。Mac下命令:ssh-keygen -t ed25519 -C "XXX@gmail.com",主要提示Enter file in which to save the key (/Users/XXX/.ssh/id_ed25519)需要输入完整文件路径,也就是存放公私钥文件位置的地方 2. 把生成的公钥证书文件上传GitHub。这个是Github账号维度,不是项目维度。你需要使用你操作的目标代码仓库对应的GitHub账号登录GitHub后才能配置公钥文件 3. 配置本地SSH客户端,不同github服务器别名关联不同ssh证书。这里假定第二步生成的私钥文件地址分别是~/.ssh/id_ed25519_account1和~/.ssh/id_ed25519_account2