Closed mmendiratta27 closed 9 months ago
I recommend using the https link instead of the git link. The link you've used requires setting up some extra permissions which is a bit more complicated.
hi guys any solution for git clone always required me user and password
If you set up the ssh keys and always clone via ssh instead of https you won't need to type your user and passwords.
You can do this by:
Run ls -la ~/.ssh
. If you don't see a file with the name id_ed25519
or id_ed25519.pub
, you probably don't have them set up, so you can proceed to create them and follow the next steps.
Run ssh-keygen -t ed25519 -C "your_github_email@your_provider.com"
Press enter when it asks you about the file name and type in something secure for the passphrase.
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Run vim ~/.ssh/id_ed25519.pub
and copy everything on the file.
Open GitHub, click on your profile on the upper right and go to settings. Then click on SSH and GPG keys
. After that, click on New SSH Key
, give it a name like lambda server, paste the entire key, and click Add SSH Key
.
Run ssh -T git@github.com
, if you get Hi your_name! You've successfully authenticated, but GitHub does not provide shell access.
you did it! Now, you can clone, push, etc via ssh without typing your username and password!
what i dont see any files.. imean what if it is empty π
that means you can proceed to create them in step 2!
without
Thanks bro for helping me.. i made itππ
that means you can proceed to create them in step 2!
thanks broπ
Hi! When I try to
git clone
the repository, I get aPermission denied
error. The full command line input and subsequent output is below.I have cloned other repos from the lab this way and have not had any issues.