This commit is contained in:
parent
4f403992d6
commit
8d0b97e279
1 changed files with 1 additions and 1 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_NAME }} > ~/.ssh/known_hosts
|
||||
ssh-keyscan -p ${{ secrets.SSH_PORT }} -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
|
||||
- name: Connect and check
|
||||
run: |
|
||||
ssh -i ~/.ssh/id_rsa -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST_NAME }} "ls -al"
|
Loading…
Reference in a new issue