We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had a go with this and it although I've put the private key into a secret and done:
name: Deploy to VPS on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Set up SSH uses: webfactory/[email protected] with: ssh-private-key: ${{ secrets.VPS_SSH_PVT_KEY }} - name: Manually update known_hosts run: | mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts && ssh-keyscan <ip_address> >> ~/.ssh/known_hosts - name: Deploy to VPS run: ssh -v cicd@<ip_address> "cd /var/www/html/edge-hello-world && git pull origin main"
It doesn't seem to find the key:
debug1: Offering public key: --REDACTED-- agent debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug1: Trying private key: /home/runner/.ssh/id_rsa debug1: Trying private key: /home/runner/.ssh/id_ecdsa debug1: Trying private key: /home/runner/.ssh/id_ecdsa_sk debug1: Trying private key: /home/runner/.ssh/id_ed25519 debug1: Trying private key: /home/runner/.ssh/id_ed25519_sk debug1: Trying private key: /home/runner/.ssh/id_xmss debug1: Trying private key: /home/runner/.ssh/id_dsa debug1: No more authentication methods to try. cicd@<redacted-ip-address> Permission denied (publickey,gssapi-keyex,gssapi-with-mic). Error: Process completed with exit code 255.
The text was updated successfully, but these errors were encountered:
Did you manage to fix the issue, I have the same problem.
Sorry, something went wrong.
No branches or pull requests
I had a go with this and it although I've put the private key into a secret and done:
It doesn't seem to find the key:
The text was updated successfully, but these errors were encountered: