Skip to content

Use password and key at same time #178

@aawnu

Description

@aawnu

My host requires the use of both password and ssh-key to connect, but this action does not allow it returning the following: 20***/08/16 19:04:14 can't set password and key at the same time

Its used as follows:

name: Migration

on:
  push:
    branches:
      - master

jobs:
  ssh-migration:
    needs: phpunit
    runs-on: ubuntu-latest
    steps:
      - uses: appleboy/ssh-action@v0.1.4
        with:
          host: ${{ secrets.HOST }}
          username: ${{ secrets.SSH_USER }}
          password: ${{ secrets.SSH_PASS }}
          port: ${{ secrets.SSH_PORT }}
          key: ${{ secrets.SSH_KEY }}
          script: |
            cd ${{ secrets.SSH_BASE_PATH }}/laravel
            php artisan migrate

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