r/git • u/moving_to_NL_soon • Oct 27 '26
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.
6
u/JNikolaj Oct 27 '26
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
1
u/bikeram Oct 27 '26
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
1
u/baller5 Oct 27 '26
Did you save the key in GitHub?