I want to clone the repository git@git01-ifm-min.ad.fh-bielefeld.de:pm_group/PM-Studis.git, this is not on Github, so I can't use Github for that. I thought you just had to type in git clone [remote repository name] into the Git Bash, but when I do that, I get the following message:
$ git clone git@git01-ifm-min.ad.fh-bielefeld.de:pm_group/PM-Studis.git
Cloning into 'PM-Studis'...
ssh: Could not resolve hostname git01-ifm-min.ad.fh-bielefeld.de: Name or service not known
fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.
So this could have been something with the server that I was trying to get the repository from (not really, I'm fairly sure it has to be valid), so I tried again to clone a random repository from Github (with the SSH option) to see if the same happens for every repository. There I get a somewhat different message:
$ git clone git@github.com:google/agera.git
Cloning into 'agera'...
Permission denied (publickey).
fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.
But when I clone it with the HTTPS URL instead, everything works fine.
I tried finding out what this SSH thing was about, and found this guide on Github. There I followed the "Generating a new SSH key and adding it to the ssh-agent" step (before that the .ssh folder already existed with only a known-hosts file in it). After that when I type "ssh-add -l" it shows the created key, so I think that means the key is now "in use".
But when I then type "git clone [url]" again, I still get the same error messages, both when I try to clone the Github repository and the repository I want to clone. So I have no idea what to try next. Is there something else I need to do with the key? And if the solution to this isn't something simple, perhaps someone else could grab the contents of the repository and send me a download link (assuming that it is a valid link to a repository, but it wouldn't really make sense for it to not be valid).
(I use Windows 7)