Skip to content

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

@AxharKhan

Description

@AxharKhan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions