test
Some checks failed
/ SSH connection tests (push) Failing after 0s

This commit is contained in:
Yann Kervran 2024-04-19 10:53:03 +02:00
parent f40fd719ce
commit 4f403992d6

View file

@ -44,7 +44,7 @@ jobs:
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
- name: Adding knwon hosts - name: Adding knwon hosts
run: | run: |
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts ssh-keyscan -H ${{ secrets.SSH_HOST_NAME }} > ~/.ssh/known_hosts
- name: Connect and check - name: Connect and check
run: | run: |
ssh -i ~/.ssh/id_rsa -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "ls -al" ssh -i ~/.ssh/id_rsa -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST_NAME }} "ls -al"