dial tcp :22: connect: connection refused
Can someone tell me why I get this error?
I've correctly configured the host, key and username and tried allowing all tcp traffic on port 22 on the server but the problem still persists.
Thanks!
yaml:
name: Build and Deploy on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - name: Deploy uses: appleboy/ssh-action@master with: host: ${{ secrets.SHH_HOST }} key: ${{ secrets.SSH_KEY }} username: ${{ secrets.SSH_USERNAME }} script: | whoami
@lloydy500
Are you sure it's called secrets.SHH_HOST and not secrets.SSH_HOST
@lloydy500 Are you sure it's called
secrets.SHH_HOSTand notsecrets.SSH_HOST
You sir, should be knighted.
Thanks so much!!!!
Issue resolved!