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

ENAMETOOLONG: name too long, open '***'

Open wyllisMonteiro opened this issue 3 years ago • 0 comments

I'm trying to run a script on remote machine. For some reason an action fails.

deploy job

deploy:
    runs-on: ubuntu-latest

    needs: build
    if: github.ref == 'refs/heads/ci-1'
    steps:
    - name: Deploy to Server
      uses: garygrossgarten/github-action-ssh@release
      with:
        command: ls -a
        host: ${{ secrets.REMOTE_HOST }}
        username: ${{ secrets.REMOTE_USER }}
        privateKey : ${{ secrets.SSH_PRIVATE_KEY}}

I set my secrets as you can see 2

I got this message 1

It seems my hostname is too long but it's the good one. I tried to connect with command line ssh @, it work's well. I try to connect to ionos host via github action

wyllisMonteiro avatar May 31 '22 21:05 wyllisMonteiro