I am under Ubuntu 16.04. I cannot clone any repository (i.e. git://yoctoproject.org/poky ; git://git.gnome.org/jhbuild ; git://git.gnome.org/rhythmbox etc.) under the git protocol.
I generated public and private ssh keys with ssh-keygen and put them on the folder ~/.ssh/ .
It works with downloading git repositories under https protocol (like https://github.com/mozilla/gecko-dev). I have tried the option "use https:// instead of git://" for cloning the above git repos but it did not work. I checked with different internet connections (home and work), removed the proxy, but it did not work.
The errors i get when I try to clone are: - fatal: unable to connect to "hostname" ; errno=Connection timeout / no error. - ssh: connect to host "hostname" port 22: connection timed out Please make sure you have the correct access rights and the repository exists.
My idea is that in some way for every git:// repository I need to add my public key to the host authorized_keys folder, but I do not know how to do it (and if it is the solution to my problem). Can someone please give me a working example on how to clone a repo with git:// protocol?