Skip to content

Commit

Permalink
FEAT: Create known hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumpedro214 authored Feb 8, 2024
1 parent aca9140 commit 20ac4e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- run: echo -e '\x1dclose\x0d' | telnet ${{ secrets.HOST_IP }} 80
- run: |
echo "$SSH_KEY" > private.key
touch ~/.ssh/known_hosts
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- run: ssh -i private.key ${{ secrets.HOST_USER }}@${{ secrets.HOST_IP }} 'echo Hello!'
env:
Expand Down

0 comments on commit 20ac4e6

Please sign in to comment.