image: ubuntu before_script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh - chmod 700 ~/.ssh - ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts Test SSH: script: - ssh $USER_NAME "mkdir -p testscript" - scp testscript.sh $USER_NAME:~/testscript/testscript.sh - scp helloworld.c $USER_NAME:~/testscript/helloworld.c - ssh $USER_NAME "cd ~/testscript && chmod 700 testscript.sh && ./testscript.sh"