Git clone command

I'm trying to download a module from github to get VMware to run, using the following command as suggested:

git clone https://github.com:nan0desu/vmware-host-modules

which then asks for username and passwords. Alternately I tried:

git clone [email protected]:nan0desu/vmware-host-modules , which returns....

Cloning into 'vmware-host-modules'...

[[email protected]](mailto:[email protected]) Permission denied (publickey)

fatal: could not read from remote repository.

I have saved user.name and user.email via git config and generated a rsa key as mentioned in another r/git post on the similar topic. But being relatively new to linux and especially using github, I am lost.

10 comments · 27% upvoted · other discussions

comments

JNikolaj

Are you sure you're doing it correctly? I just did it for fun and https://github.com:nan0desu/vmware-host-modules is definitely not working, however https://github.com/nan0desu/vmware-host-modules.git is working

atarivcs

Yeah, github repo addresses should always end in ".git".

And it's also odd that the https repo address has a colon instead of a slash after "github.com"

Langdon_St_Ives

A colon after the hostname signifies that what follows is the port. In this case it would try to resolve what port number `nan0desu` corresponds to via `/etc/services` and/or other directory services depending on local configuration. Since this port name doesn't exist, I'm not sure if it'll revert back to HTTPS's default port 443, or will use 0, or if it's completely undefined. I would guess default port. In any case, even with default port, the remaining path doesn't exist on GitHub.

JNikolaj

Doesn't appear to be the case.

git clone https://github.com/nan0desu/vmware-host-modules works fine as well, you're probably right however the error comes from the colon instead of slash

moving_to_NL_soon [OP]

I will check to make sure I didn't leave off .git

moving_to_NL_soon [OP]

Yes, no .git in the instructions and the : instead of / was a typo just here.

When you checked it, does it ask for a username? Or maybe yours is already saved with them?

Edit: turned out I had a different typo in my initial https try. It didn't ask for a username and password this time as well. Thanks all for the help!

baller5

Did you save the key in GitHub?

bikeram

When you generated your key you should get two files in your ~/.ssh/

One will end with .pub. Copy that one to GitHub under settings > keys

moving_to_NL_soon [OP]

Yes, two files the id and .pub file. So I guess I need to register with GitHub then?

CartographerDue5382

for https, no, you don't need an account. that repo is public. the prompt was the colon in the url, git treated nan0desu as a port. use a slash:

git clone https://github.com/nan0desu/vmware-host-modules.git

user.name in git config isn't a login, it only stamps commits. the ssh command is the one that needs the .pub on a github account (settings > ssh keys). ssh -T [email protected] tells you if that key actually got accepted.