ssh-keygen -b 4096

This commit is contained in:
simono41 2018-06-17 20:58:31 +02:00
parent 4cbf42ce71
commit ca94fdbd92

View file

@ -30,6 +30,14 @@ hostname="$(cat /etc/hostname)"
[[ -z "${userpass}" ]] && userpass="user1"
function gitclone() {
if ! [ -f "/root/.ssh/id_rsa.pub" ]; then
ssh-keygen -b 4096
rootrechte
cat /root/.ssh/id_rsa.pub
echo "Bitte tragen sie den neuen Key in den GIT-Server ein!!!"
echo "Sie haben 60 Sekunden Zeit!!!"
sleep 60
fi
if [ -d "/opt/${repo}" ]; then
echo "${repo} existiert bereits!!!"
cd /opt/${repo}