|
@@ -2,12 +2,38 @@
|
|
|
|
|
|
|
|
Troubleshooting for 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
|
|
## Install
|
|
|
|
|
|
|
|
First, clone the `TECLIM/SSH_connection` repository. For instance:
|
|
First, clone the `TECLIM/SSH_connection` repository. For instance:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
-git clone ssh://git@www.climate.be:3022/TECLIM/SSH_connection.git
|
|
|
|
|
|
|
+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!
|
|
Then, go to the repository, open & adapt the `install.sh` script: you must change the password!
|