Skip to content

en_linux_ssh

Florent LERAY edited this page Nov 22, 2019 · 1 revision

SSH

Description

SSH is both a computer program and a secured communication protocol.  

Use

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.

SSH key creation

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.

Tips and advice

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

Next next step

The following installation is global install for linux.
global install