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

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

Open AxharKhan opened this issue 4 years ago • 0 comments

I know this is probably not an issue with this action but can I get some help with this, I am trying to restart a service on a ubuntu 20.04 server using this ssh action but I get this error.

    - name: Run SSH command
      uses: garygrossgarten/github-action-ssh@release
      with:
        command: sudo service **** restart
        host: ${{ secrets.REMOTE_HOST }}
        username: ${{ secrets.REMOTE_USER }}
        password: ${{ secrets.REMOTE_PASSWORD }}
        tryKeyboard: true

AxharKhan avatar Nov 14 '21 08:11 AxharKhan