|
|
пре 3 година | |
|---|---|---|
| sshpass | пре 8 година | |
| README.md | пре 3 година | |
| ceci_config | пре 3 година | |
| elic_config | пре 3 година | |
| install.sh | пре 8 година | |
| ssh_config | пре 4 година | |
| station_config | пре 3 година |
Troubleshooting for ssh connection
From scratch:
touch ~/.Xauthority
ssh-keygen -t rsa
type
Entertwice
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
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
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