Тест ssh

This commit is contained in:
Andrei Astafev 2023-02-17 16:07:31 +03:00
parent 7c80801bf9
commit dd42e6140b

View File

@ -13,7 +13,9 @@ variables:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/key
- chmod 0400 ~/.ssh/key
- echo '' | SSH_ASKPASS=/bin/cat ssh-add ~/.ssh/key
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
.use-clang: