garygrossgarten / github-action-scp

⬆️ Copy a folder to a remote server using SSH
MIT License
190 stars 53 forks source link

unsupported key format #3

Closed sample-usr closed 3 years ago

sample-usr commented 4 years ago

Hi, I'm trying to get this action working with the privateKey option. But I'm running in to the error where it says Unsupported key format.

I've tried downgrading my key as mentioned in this issue https://github.com/steelbrain/node-ssh/issues/149 of the node-ssh module but still the problem remains.

Here is the workflow part:

- name: Push Release To Deploy (Staging)
      uses: garygrossgarten/github-action-scp@release
      with:
        local: "_build/"
        remote: "/home/user/ribbit/build"
        host: ${{ secrets.STAGING_HOST }}
        username: "ribbit"
        privateKey: $${{ secrets.STAGING_HOST_KEY }}
Michael21011 commented 4 years ago

Hi @razagill Why there are two $ sign in privateKey value? Could it be a reason for an issue? Did you tryed insert your key (probably better to create temporal key by security reason) directly into action to check where is a problem, like privateKey: "your key value"

garygrossgarten commented 3 years ago

Closing due to inactivity