所以我在 AWS 上设置了我的 git 服务器,它在我的 mac 和 ubuntu 上运行得非常好,但是我在使用 windows 连接它时遇到了麻烦。这是我得到的步骤和错误。
脚步:
1. generate keys using "ssh-keygen -t rsa -b 4096"
2. put the key on server using "echo 'sshkey' >> .ssh/authorized_keys"
3. init repo on windows, set remote to "git remote add origin git@git-myserver-GitName.git"
4. setup config file with the public ip:
Host git-myserver
HostName <publicIP>
User git
IdentityFile ~/.ssh/keyForGitServer
RequestTTY no
5. git pull origin master
它给了我以下错误:
fatal: 'git@git-myserver-GitName.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
任何建议,将不胜感激。