Tips and Tricks for ELIC

Pierre-Yves Barriat 2d1283a807 Upgrade instructions пре 3 година
sshpass 6c15b61116 Add everything пре 8 година
README.md 2d1283a807 Upgrade instructions пре 3 година
ceci_config 2d1283a807 Upgrade instructions пре 3 година
elic_config 2d1283a807 Upgrade instructions пре 3 година
install.sh 6c15b61116 Add everything пре 8 година
ssh_config 45ad0e6144 Update 'ssh_config' пре 4 година
station_config 2d1283a807 Upgrade instructions пре 3 година

README.md

SSH_connection

Troubleshooting for ssh connection

Getting started

From scratch:

touch ~/.Xauthority
ssh-keygen -t rsa

type Enter twice

cd
cd .ssh
wget https://gogs.elic.ucl.ac.be/TECLIM/SSH_connection/raw/master/ssh_config
mv ssh_config config
chmod 600 config
vi config

from outside: ssh_config

In vi config:

:%s/jsmith/your_username/g
: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 https://gogs.elic.ucl.ac.be/TECLIM/SSH_connection.git # https 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