# SSH_connection Troubleshooting for ssh connection ## Getting started From scratch: ```bash touch ~/.Xauthority ssh-keygen -t rsa ``` > type `Enter` twice ```bash 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` ```bash ssh-copy-id -i ~/.ssh/id_rsa.pub www.climate.be ``` ## Install First, clone the `TECLIM/SSH_connection` repository. For instance: ``` git clone ssh://regit@www.climate.be:3022/TECLIM/SSH_connection.git ``` 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: ```bash cd SSH_connection ./install.sh ``` Now you can add your identity on a remote machine with: ```bash ssh-copy-id -i ~/.ssh/id_rsa.pub remote_machine ``` ## Usage A few examples: ```bash # 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 - ELIC members [@pbarriat](http://www.climate.be:3000/pbarriat)