Always getting asked for password #3625
Answered
by
20x-dz
ps-20x
asked this question in
Help needed
-
I am having a problem that the ssh connection is for any reason always asking for the password.
Steps what I have done
My github workflow looks likename: Deploy
on:
push:
branches: [ develop ]
pull_request:
concurrency: deploy_staging
jobs:
deploy-api-staging:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
- name: Install dependencies
run: composer install
- name: Deploy
uses: deployphp/action@v1
with:
dep: --file=api/deploy.yaml deploy
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-config: |
Host *
StrictHostKeyChecking no
skip-ssh-setup: false
deployer-binary: "api/vendor/bin/dep"
verbosity: -vvv My config for deployer looks likeI replaced import:
- recipe/laravel.php
config:
repository: '[email protected]:{{company}}/{{project}}.git'
hosts:
{{host}}:
stage: staging
remote_user: my_user
user: my_user
deploy_path: '~/{{project}}/api'
forward_agent: false
tasks:
build:
- run: pwd
- run: uptime
after:
deploy:failed: deploy:unlock For the moment the deploy is not really doing anything but I will update that later on. At the moment I am stuck with accessing the server without password. Does anyone have an idea on how to solve that? |
Beta Was this translation helpful? Give feedback.
Answered by
20x-dz
Jun 21, 2023
Replies: 1 comment 2 replies
-
Did you try to SSH into the server just from the command line, outside deployer context? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed it (I think, still running into deploy action issues because of deployphp/action@e71b9fe). According to https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#environment-secrets
Can be closed.