ssh-keygen -b 4096
This commit is contained in:
parent
4cbf42ce71
commit
ca94fdbd92
1 changed files with 8 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue