Github ssh
1
2
3
4
5
6
7
8
9
10
sudo su
ssh-keygen
cd /root/.ssh
chmod 600 ~/.ssh/id_ed25519.pub
ssh-add
eval "$(ssh-agent -s)"
git remote -v
ssh-add id_ed25519.pub
ssh -T GITHUB-username@github.com
ssh -vT git@github.com
Connecting to GitHub with SSH
- we will make a new ssh key
- add the pub key to github
- to enable safer uploads
1
2
sudo su
ssh-keygen
directory
the default directory were the keys will be saved
you may change the directory if you want or change the key name
and remember to use a strong passwrord
1
/home/username/.ssh/id_ed25519
permissions
cd into the directory
and elive the permissions
change the id_ed25519.pub name to fit the one you have
1
chmod 600 ~/.ssh/id_ed25519.pub
Add the specified private
1
ssh-add
config
Starts a new SSH agent in the background
sets environment variables to allow other programs
(like Git) to communicate with it
1
eval "$(ssh-agent -s)"
Git remotes
- (repositories), along with their URLs and associated fetch and push protocols.
1
egit remote -v
Initiates an SSH
It establishes a secure connection to the GitHub server using the SSH protocol.
change the user-name to your github user-name
Does not execute a command: The -T flag instructs ssh to only test the authentication.
1
ssh -T GITHUB-user-name@github.com
conecting
- SSH connectivity and authentication with GitHub
1
ssh -vT git@github.com
This post is licensed under CC BY 4.0 by the author.