This commit is contained in:
ITQ
2025-04-02 19:40:47 +03:00
parent 091e02ea55
commit e85bf11282
+2 -2
View File
@@ -93,8 +93,8 @@ deploy:
script: script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\tIdentitiesOnly yes\n\n" > ~/.ssh/config
- echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa - printf "%s\n" "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -H "$SSH_HOST" -p "$SSH_PORT" > /dev/null 2>&1 - ssh-keyscan -H "$SSH_HOST" -p "$SSH_PORT" > /dev/null 2>&1