github-action-ssh
github-action-ssh copied to clipboard
ENAMETOOLONG: name too long, open '***'
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
I got this message
It seems my hostname is too long but it's the good one. I tried to connect with command line ssh