Tips and Tricks for ELIC

Pierre-Yves Barriat 7ccf55e207 Mettre à jour 'README.md' 8 years ago
sshpass 6c15b61116 Add everything 8 years ago
README.md 7ccf55e207 Mettre à jour 'README.md' 8 years ago
install.sh 6c15b61116 Add everything 8 years ago
ssh_config 8a90250e27 Update 'ssh_config' 8 years ago

README.md

SSH_connection

Troubleshooting for ssh connection

Getting started

From scratch:

touch ~/.Xauthority
ssh-keygen -t rsa

type Enter twice

wget http://www.climate.be:3000/TECLIM/SSH_connection/raw/master/ssh_config
mv ssh_config .ssh/config
chmod 600 .ssh/config
vi .ssh/config

type :%s/jsmith/your_username/g and :wq

Import your id_rsa.ceci file in ~/.ssh/config

ssh-copy-id -i ~/.ssh/id_rsa.pub gwelic

Install

First, clone the TECLIM/SSH_connection repository. For instance:

git clone http://www.climate.be:3000/TECLIM/SSH_connection.git # http classical

git clone ssh://git@www.climate.be:3022/TECLIM/SSH_connection.git # ssh classical

git clone ssh://egit/TECLIM/SSH_connection.git # ssh with config definition

git clone ssh://regit/TECLIM/SSH_connection.git # ssh with config definition + via elic gateway

Then, go to the repository, open & adapt the install.sh script: you must change the password! You can also change the machine name.

And run it:

cd SSH_connection
./install.sh

Now you can add your identity on a remote machine with:

ssh-copy-id -i ~/.ssh/id_rsa.pub remote_machine

Usage

A few examples:

# from local elic network
ssh ozone
rsync -av my_folder ozone:~
git clone ssh://egit/TECLIM/Git_Training

# from outside
ssh ozone%gwelic
ssh lemaitre2%gwcism
rsync -av my_folder ozone%gwelic:~
git clone ssh://regit/TECLIM/Git_Training

Contributors