setup-ssh.sh
1 # Establish SSH to localhost for test_sftp_artifact_repo.py
2 ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
3
4 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
5 ssh-keyscan -H localhost >> ~/.ssh/known_hosts
6 ssh $(whoami)@localhost exit
7 export LOGNAME=$(whoami)