ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

dial tcp :22: connect: connection refused

Open lloydy500 opened this issue 3 years ago • 2 comments

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 avatar Nov 17 '22 22:11 lloydy500

@lloydy500 Are you sure it's called secrets.SHH_HOST and not secrets.SSH_HOST

HenrySpartGlobal avatar Nov 17 '22 22:11 HenrySpartGlobal

@lloydy500 Are you sure it's called secrets.SHH_HOST and not secrets.SSH_HOST

You sir, should be knighted.

Thanks so much!!!!

Issue resolved!

lloydy500 avatar Nov 18 '22 10:11 lloydy500