parent
f40fd719ce
commit
4f403992d6
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ jobs:
|
|||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
- name: Adding knwon hosts
|
||||
run: |
|
||||
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
|
||||
ssh-keyscan -H ${{ secrets.SSH_HOST_NAME }} > ~/.ssh/known_hosts
|
||||
- name: Connect and check
|
||||
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"
|
Loading…
Reference in a new issue