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鈥檒l 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 · 1 comment
Open

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

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