SSH Keys & PAT
PAT (Personnal Access Token)
In your account settings, you can generate a PAT and then use it like so:
https://<username>:<PAT>@github.com/username/repo.git
SSH Keys
ssh-keygen -t ed25519 # PUT A PASSPHRASE OR IT WONT WORK
cat ~/.ssh/id_ed25519.pub # KEEP DEFAULT NAME OR IT WONT WORK
Copy content and paste in deploy key Go to repo>settings>deploy key
git clone git@github.com:username/repo.git
If you're still having issue to connect, check your permissions with ls -la
.ssh/ directory: 700 ( drwx------ )
public key (.pub file): 644 ( -rw-r--r-- )
private key (id_rsa): 600 ( -rw------- )
Last updated