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

ssh: handshake failed: read tcp ... read: connection reset by peer #261

Open
imsyuan opened this issue Aug 4, 2023 · 2 comments
Open

ssh: handshake failed: read tcp ... read: connection reset by peer #261

imsyuan opened this issue Aug 4, 2023 · 2 comments

Comments

@imsyuan
Copy link

imsyuan commented Aug 4, 2023

Hi, I'm trying to deploy my Laravel app to remote Share hosting and am encountering this error.

Here is my action yaml

on:
  push:
    tags:
      - sys/v*.*.*

name: deploy
jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: 🚚 Checkout Repository
        id: checkout
        uses: actions/checkout@v2

      - name: test
        id: test
        uses: appleboy/ssh-action@v1.0.0
        with:
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          host: ${{ secrets.SSH_SERVER }}
          username: ${{ secrets.SSH_USER }}
          port: ${{ secrets.SSH_PORT }}
          script: |
            ls -la
          debug: true

This is output what I got.

ssh: handshake failed: read tcp ... ->***:***: read: connection reset by peer

I also try the same private key in my local Mac. It can logging to remote hosting.
Do anyone get the same error?

@steklopod
Copy link

steklopod commented Jan 7, 2024

Same. In latest version the error appeared:
Снимок экрана 2024-01-07 в 14 40 29

It works with appleboy/ssh-action@v1.0.0. But not with the latest

@appleboy
Copy link
Owner

appleboy commented Jun 4, 2024

Please provide the following information.

  1. Your hosting provider information, such as DigitalOcean, Linode, AWS, or GCP.
  2. The version information of your host's SSH service.
  3. The information from your host's SSH configuration file.

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

3 participants