cluster-deployment/jobs/ssh-preconnect/ssh-preconnect.job

5 lines
275 B
Text
Raw Normal View History

#!/usr/bin/env bash
RUN 'ssh -T git@git.starbeamrainbowlabs.com || ssh-keyscan -H git.starbeamrainbowlabs.com >>$HOME/.ssh/known_hosts';
RUN 'sudo -E ssh -T git@git.starbeamrainbowlabs.com || ssh-keyscan -H git.starbeamrainbowlabs.com | sudo tee -a /root/.ssh/known_hosts';