fifsky / ssh-action

🖥 github ssh action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

***@***: Permission denied (publickey).

knynkwl opened this issue · comments

Does the key need to be the contents of the ~/.ssh/id_rsa.pub on your local machine?

Load key "/github/home/.ssh/deploy_key": invalid format
***@***: Permission denied (publickey)
    - name: ls -a via ssh
      uses: fifsky/ssh-action@master
      with:
        host: ${{ secrets.FORGE_HOST }}
        user: ${{ secrets.FORGE_USERNAME }}
        port: 22
        key: "${{ secrets.SSH_PRIVATE_KEY}}"
        command: |
          ls -a

key is private ~/.ssh/id_rsa

Could you please explain what exactly were you doing wrong and how did you fix it? I'm trying to use private key (from ~/.ssh/id_rsa) as a secret passed to key, but I do get the

@: Permission denied (publickey).

error message