auto ssh key
shell
6 years, 5 months ago
export PATH=$WORKSPACE/resources/chromedriver/mac:$WORKSPACE/venv/bin:/usr/local/bin:$PATH
export PYTHONPATH=$WORKSPACE
if [ ! -d "venv" ]; then
virtualenv venv
fi
if [ ! -f ".ssh/id_rsa" ]; then
mkdir -p ${HOME}/.ssh
chmod 0700 ${HOME}/.ssh
#ssh-keygen -t rsa -C "Key for QA team" -N '' -f ${HOME}/.ssh/id_rsa
echo "SSH public file"
cat ${HOME}/.ssh/id_rsa.pub
else
echo "SSH key already exists.."
cat ${HOME}/id_rsa.pub
fi
ssh-keyscan -H IP >> ${HOME}/.ssh/known_hosts
ssh-keyscan -H IP >> ${HOME}/.ssh/known_hosts
. venv/bin/activate
0 Comments
Please Login to Comment Here