-
-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
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
git pull returns Permission denied (publickey) #232
Comments
maybe u change |
I tried, but nothing happened |
if u use git like ssh, i recommend u remove passphrase ssh-keygen -p -f ~/.ssh/id_rsa and leave field passphrame empty |
Please add your private key to deploy keys page as below - name: pull private repository
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
port: ${{ secrets.PORT }}
script_stop: true
script: |
git clone git@github.com:go-training/self-runner.git test_repository2
cd test_repository2 && git pull
rm -rf test_repository2 It is working for me. See the output log |
It is not allowed to add private key to the deploy key page, as you wrote, because : "Key is invalid. You must supply a key in OpenSSH public key format". I can pull manually without password: my SSH-authentification works. But with this github actions does not: I can perform ssh commands but not authenticate with github: err: Cloning into 'personal-site'... if I change the key to |
If its success , why it shows "err Cloning into ...." |
same, why does it show err? So confusing |
Can not add a private key as a deploy key |
Also running into this issue, not sure if there's been a revision to how GH handles Deploy Keys specifically. I guess work around is to use regular repo secrets? |
Same problem here. Did anyone manage to solve this problem? |
I had the same problem. Only solution was to start the name: Deploy App
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: remote execution
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.KEY }}
script: |
eval `ssh-agent -s`
ssh-add ~/.ssh/git_id_rsa
cd ${{ secrets.PATH}}
git pull |
Hello!
I wanted to automatically pulling changes on the dev server after the push.
My action:
The SCRIPT contains the following commands:
When I run the action, I get the following message:
The action connects under root. If I run the same commands manually under it, then there is no error, the pool is successful. Help me please!
The text was updated successfully, but these errors were encountered: