Skip to content
Snippets Groups Projects
Commit 47a45770 authored by Jan Caron's avatar Jan Caron
Browse files

Trying to get iffgit into known_host file! Part2

parent c5eb9c34
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,13 @@ before_script:
# Create SSH configuration directory if necessary (also parents with -p, mode: read/write/exec):
- mkdir -p --mode=700 ~/.ssh/
# Add SSH key for jutil:
- echo "ID_RSA_JUTIL" > ~/.ssh/id_rsa_jutil
- echo "$ID_RSA_JUTIL_PRIVATE" > ~/.ssh/id_rsa_jutil
# Provide read access to owner (octal value code: 400) to the key with chmod:
- chmod 400 ~/.ssh/id_rsa_jutil
# Configure SSH to use ~/.ssh/jutil_key for iffgit.fz-juelich.de (-e allows \n):
- echo -e "Host iffgit.fz-juelich.de\n\tIdentityFile ~/.ssh/id_rsa_jutil\n" > ~/.ssh/config
#- cat ~/.ssh/config
- cat ~/.ssh/config
#- ssh-keyscan -H 'iffgit.fz-juelich.de'
#- echo $(<ssh-keyscan -H 'iffgit.fz-juelich.de') >> ~/.ssh/known_hosts
......@@ -21,10 +21,13 @@ before_script:
# you are suspectible to man-in-the-middle attacks.
# WARNING: Use this only with the Docker executor, if you use it with shell
# you will overwrite your user's SSH config.
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
#- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
# >> appends instead of overwriting
#- echo -e "iffgit.fz-juelich.de $ID_RSA_JUTIL_PUB" >> ~/.ssh/known_hosts
- echo iffgit.fz-juelich.de,134.94.161.83 AAAAB3NzaC1yc2EAAAADAQABAAABAQCk0Z9WQVPP3vwqSXa8RZFwGNrtwaJsE1cHmfUlrF0Fug1a1MBQI9q/ZgHOjE82Wu/lwO8VGnedk3Q//onw3JCpjL9I0Vmkcw0UBX3Cd7yM5RqIP87Ji44UPREQItWkWKOxKFYPXMLXon3Ef+R4oMegcTft/2Iq4lKugnPtdeFzJIF2ig1Uro3Vw6HM4bAr0+iOLuXL1LlM4JFNFcA/QwsvBbKsx25fpFUgyeIrUPNcra/m0vpW8ZrW/jiTK2HmQrjDcs/De2jCdGW6bsK6kd3Ks164tijwz4cOD/3JKjjzVChBBQe6bZVbAQVl5odO5wMS5A9wSe2Y8c4TmsAhobYj > ~/.ssh/known_hosts
- echo iffgit.fz-juelich.de,134.94.161.83 "$ID_RSA_IFFGIT_PUBLIC" > ~/.ssh/known_hosts
# Provide read access to owner (octal value code: 400) to the key with chmod:
- chmod 400 ~/.ssh/id_rsa_jutil
- cat ~/.ssh/known_hosts
# Install jutil via secure ssh connection:
- pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
......
......@@ -28,7 +28,7 @@ test=pytest
[coverage:run]
branch = True
source = pyrami
source = pyramid
omit =
pyramid/tests/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment