Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dial tcp :22: connect: connection refused #192

Open
lloydy500 opened this issue Nov 17, 2022 · 2 comments
Open

dial tcp :22: connect: connection refused #192

lloydy500 opened this issue Nov 17, 2022 · 2 comments

Comments

@lloydy500
Copy link

lloydy500 commented Nov 17, 2022

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

@HenrySpartGlobal
Copy link

HenrySpartGlobal commented Nov 17, 2022

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

@lloydy500
Copy link
Author

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants