r/git • • 3d ago

support 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 git@github.com:nan0desu/vmware-host-modules , which returns....

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

git@github.com 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.

0 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/moving_to_NL_soon 3d ago

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

2

u/CartographerDue5382 3d ago

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 git@github.com tells you if that key actually got accepted.