|
|
há 8 anos atrás | |
|---|---|---|
| sshpass | há 8 anos atrás | |
| README.md | há 8 anos atrás | |
| install.sh | há 8 anos atrás | |
| ssh_config | há 8 anos atrás |
Troubleshooting for ssh connection
From scratch:
touch ~/.Xauthority
ssh-keygen -t rsa
type
Entertwice
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/gand: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 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
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