git hub ssh key code example
Example 1: genrate shh key github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: add ssh key to github
ssh-add -l
ssh-keygen -t rsa -b 4096 -C your__gmail
sudo apt install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
DONE!!!
Example 3: how to create ssh key for github
$ eval "$(ssh-agent -s)"
> Agent pid 59566
Example 4: create ssh key github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 5: add ssh key to github
> Generating public/private rsa key pair.
Example 6: add key file to ssh
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]