-
Notifications
You must be signed in to change notification settings - Fork 1
en_linux_ssh
SSH is both a computer program and a secured communication protocol.
As part of medInria SSH and more specifically SSH keys are used to interact with GitHub.
IMPORTANT SSH keys are essential for 'private parties' of medInria and greatly facilitate transactions with github.
In a terminal in the directory of the current user run the mkdir .ssh command to create the .ssh folder that will host the ssh keys, then cd .ssh
mkdir .ssh
cd .ssh
Run the ssh-keygen -t rsa command to generate a public / private key pair.
Enter a passphrase and copy / paste the public key into your github account if you have one.
Save the public key in an id_rsa.pub file in the .ssh folder
The files created in this way must be write-read only for your user, if this is not the case perform a chmod 600.
In order to simplify your life, it is possible to install keychain which allows you to have to use your SSH password once.
sudo apt-get install keychain
Add the following lines to your .bashrc file
/ usr / bin / keychain $ HOME / .ssh / id_rsa
source $ HOME / .keychain / $ HOSTNAME-sh
The following installation is global install for linux.
global install