I want to clone a repo of another person using ssh. For this I did following things:
- Generated an ssh key in local machine.
- Added the key to the user's account from which the repo has to be cloned.
- Tested whether the key was added by running
ssh -T git@github.com
which outputs :Hi username! You've successfully authenticated, but GitHub does not provide shell access.
- Ran
git clone git@github.com:repo/repo.git
.
The last step outputs Cloning into 'Foldername'... and I can see that the folder is created but no files are present in the folder. I left it for 1 hour but nothing was copied and I also checked the net but its working fine. I am using cygwin on windows to clone the repo.
What am I doing wrong?