test
Some checks failed
/ SSH connection tests (push) Has been cancelled

This commit is contained in:
Yann Kervran 2024-04-19 11:00:19 +02:00
parent 4f403992d6
commit 8d0b97e279

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_NAME }} > ~/.ssh/known_hosts ssh-keyscan -p ${{ secrets.SSH_PORT }} -H ${{ secrets.SSH_HOST }} > ~/.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_NAME }} "ls -al" ssh -i ~/.ssh/id_rsa -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST_NAME }} "ls -al"