Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 878 Bytes

File metadata and controls

60 lines (44 loc) · 878 Bytes

Github

Configurate credentials for clone a private proyect from github

Create and Add a Key to SSH-Agent

Creating a private an public key

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Move the key to ~/.ssh directory

mv [file-name-rsa] ~/.ssh
mv [file-name-rsa.pub] ~/.ssh

Launch SSH-Agent in background

eval `ssh-agent -s`

Add the key to ssh-agent

ssh-add ~/.ssh/[file-name-rsa]
ssh-keygen -p -f ~/.ssh/[file-name-rsa]

SSH-Agent

View SSH-Agent status

ssh-agent

Forget a key after a seconds.

ssh-add -t <seconds>

Command Usefulls

View ssh keys in server

cd ~/.ssh

Install 'clip' package to copy information to clipboard

# copy
sudo apt-get install xclip

# copy to clipboard
xclip -o | xclip -sel clip

# paste
xclip -o -sel clip > file.txt