Answers for "ssh key and gitlab, github"

0

ssh key and gitlab, github

// Check ssh key
ls -al ~/.ssh

// generate a new ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
// or
ssh-keygen -t rsa

// Enter file in which to save the key (/root/.ssh/id_rsa): [Press enter]
// Enter passphrase (empty for no passphrase): [Type a passphrase]
// Your identification has been saved in /root/.ssh/id_rsa.


//Make sure that ssh-agent is enabled with the command:
eval "$(ssh-agent -s)"

// Add your key to ssh-agent
ssh-add ~/.ssh/id_rsa

// Add the ssh public key to your server account (github, gitlab…)
cat ~/.ssh/id_rsa.pub


// Check the connection again
ssh -T [email protected]

// github: 
ssh -T [email protected]
Posted by: Guest on October-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language