Skip to content

Switch User (su) not working #279

Closed
@shubhenduanupamdutta

Description

@shubhenduanupamdutta
 - name: executing ubuntu instance using ssh
        uses: appleboy/ssh-action@v1.0.0
        with:
          host: ${{secrets.HOST_IP}}
          username: ubuntu
          key: ${{secrets.SSH_KEY}}
          port: 22
          script:  |
            su - ${{user}}
            whoami

I have already tried going into root mode before. But it is still not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions