GithubHelp home page GithubHelp logo

Comments (6)

appleboy avatar appleboy commented on May 22, 2024

Please make sure your ssh-actions version.

See #26

from ssh-action.

Eronmmer avatar Eronmmer commented on May 22, 2024

@boobo94 were you able to solve this problem? I'm facing something similar.

from ssh-action.

boobo94 avatar boobo94 commented on May 22, 2024

@boobo94 were you able to solve this problem? I'm facing something similar.

Not with this one, as I remember. I tried with https://github.com/marketplace/actions/ssh-execute-commands and it worked for me. Now I managed this by using my own sh scripts. Simpler and faster.

from ssh-action.

evencheng-invitae avatar evencheng-invitae commented on May 22, 2024

I'm running into the same issue. Meanwhile, I can manually SSH into this manual with private key without a problem using ssh -i key name@host

Are there ways I can try to replicate this problem manually?

Configs:

      - uses: appleboy/[email protected]
        with:
          host: ${{ secrets.HOST_NAME }}
          username: {name}
          key: ${{ secrets.SSH_PRIVATE_KEY }}
          debug: true
          script: |
                 ...... some scripts

Errors

/usr/bin/docker run --name dc4f4de4c6e67c92294da2be44c6897d01c977_b565d8 --label dc4f4d --workdir /github/workspace --rm -e ACTIONS_ALLOW_UNSECURE_COMMANDS -e ARTIFACTORY_TOKEN -e ARTIFACTORY_USER -e DLO_LWDL_DOCKER_IMAGE_APP -e DLO_LWDL_DOCKER_IMAGE_BASE -e DLO_RUNTIME -e INI_KEY -e INPUT_HOST -e INPUT_USERNAME -e INPUT_KEY -e INPUT_DEBUG -e INPUT_SCRIPT -e INPUT_PORT -e INPUT_PASSPHRASE -e INPUT_PASSWORD -e INPUT_SYNC -e INPUT_USE_INSECURE_CIPHER -e INPUT_CIPHER -e INPUT_TIMEOUT -e INPUT_COMMAND_TIMEOUT -e INPUT_KEY_PATH -e INPUT_FINGERPRINT -e INPUT_PROXY_HOST -e INPUT_PROXY_PORT -e INPUT_PROXY_USERNAME -e INPUT_PROXY_PASSWORD -e INPUT_PROXY_PASSPHRASE -e INPUT_PROXY_TIMEOUT -e INPUT_PROXY_KEY -e INPUT_PROXY_KEY_PATH -e INPUT_PROXY_FINGERPRINT -e INPUT_PROXY_CIPHER -e INPUT_PROXY_USE_INSECURE_CIPHER -e INPUT_SCRIPT_STOP -e INPUT_ENVS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/ec2-user/actions-runner/_work/_temp/_github_home":"/github/home" -v "/home/ec2-user/actions-runner/_work/_temp/_github_workflow":"/github/workflow" -v "/home/ec2-user/actions-runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/ec2-user/actions-runner/_work/{REPO_DIR}/{DIR}":"/github/workspace" dc4f4d:e4c6e67c92294da2be44c6897d01c977
======CMD======
# some custom commands

======END======
======ENV======

======END======
2022/03/21 22:53:58 ssh: handshake failed: EOF

from ssh-action.

guilhermess98 avatar guilhermess98 commented on May 22, 2024

@evencheng-invitae were you able to solve this problem?

from ssh-action.

JeromeGillard avatar JeromeGillard commented on May 22, 2024

In my case, a previous step uses: actions/checkout@v3 was getting a .env file that somehow made further appleboy/ssh-action steps unavailable.

Checking it out in a separate folder is my workaround.

from ssh-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.