Hello,
I'm trying to deploy the build of my app through the SCP directly in my EC2 instance, but I'm getting error in reading the key file (it is private RSA key from AWS).
Error:
⚠️ The GitHub Action couldn't connect to *** Error: Cannot parse privateKey: Unsupported key format
at Client.module.exports.597.Client.connect (/home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:11745:13)
Error: Cannot parse privateKey: Unsupported key format
at /home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:10148:24
at new Promise (<anonymous>)
at NodeSSH.connect (/home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:10128:15)
at /home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:11364:23
at Generator.next (<anonymous>)
at /home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:11282:71
at new Promise (<anonymous>)
at module.exports.526.__awaiter (/home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:11278:12)
at connect (/home/runner/work/_actions/garygrossgarten/github-action-scp/release/dist/index.js:11347:12)
Starting scp Action: m3s-app.zip to /home/ubuntu/
⚠️ An error happened:(. Not connected Error: Not connected
Error: Not connected
Workflow config:
- name: Transfer Build
uses: garygrossgarten/github-action-scp@release
with:
local: "app.zip"
remote: "/home/ubuntu/"
host: ${{ secrets.AWS_HOST }}
username: "ubuntu"
privateKey: ${{ secrets.AWS_PEM }}
Am I doing something wrong? Or it does not support this type of key?
Thanks!
Hello,
I'm trying to deploy the build of my app through the SCP directly in my EC2 instance, but I'm getting error in reading the key file (it is private RSA key from AWS).
Error:
Workflow config:
uses: garygrossgarten/github-action-scp@release
with:
local: "app.zip"
remote: "/home/ubuntu/"
host: ${{ secrets.AWS_HOST }}
username: "ubuntu"
privateKey: ${{ secrets.AWS_PEM }}
Am I doing something wrong? Or it does not support this type of key?
Thanks!