Using ssh-scp-deploy always reports "Permission denied (publickey)" error

2021-11-21T15:37:37.2226963Z ##[group]Run marcodallasanta/ssh-scp-deploy@v1.1.0
2021-11-21T15:37:37.2227615Z with:
2021-11-21T15:37:37.2228531Z   remote: /home/***/yyzone/
2021-11-21T15:37:37.2229038Z   host: ***
2021-11-21T15:37:37.2229482Z   user: ***
2021-11-21T15:37:37.2327206Z   key: ***
2021-11-21T15:37:37.2328096Z   ssh_options: -o StrictHostKeyChecking=no -o UserKnownHostsFile=~/.ssh/known_hosts
2021-11-21T15:37:37.2329008Z   scp_options: -v
2021-11-21T15:37:37.2329486Z   local: ./
2021-11-21T15:37:37.2330079Z   port: 22
2021-11-21T15:37:37.2330517Z env:
2021-11-21T15:37:37.2331188Z   JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/11.0.11-9/x64
2021-11-21T15:37:37.2331864Z ##[endgroup]
2021-11-21T15:37:37.2473422Z ##[command]/usr/bin/docker run --name e28490a861c2caec8f4b2184889ad5f2a5ae44_291cb3 --label e28490 --workdir /github/workspace --rm -e JAVA_HOME -e INPUT_REMOTE -e INPUT_HOST -e INPUT_USER -e INPUT_KEY -e INPUT_SSH_OPTIONS -e INPUT_SCP_OPTIONS -e INPUT_LOCAL -e INPUT_PORT -e INPUT_PASSWORD -e INPUT_PRE_UPLOAD -e INPUT_POST_UPLOAD -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/pluto/pluto":"/github/workspace" e28490:a861c2caec8f4b2184889ad5f2a5ae44
2021-11-21T15:37:37.8570938Z 🔑 Using key file...
2021-11-21T15:37:37.8571704Z 🔑 Adding ssh key...
2021-11-21T15:37:37.8607477Z Error loading key "/dev/fd/63": invalid format
2021-11-21T15:37:37.8608149Z Agent pid 8
2021-11-21T15:37:37.8609198Z 🚚 Uploading via scp...
2021-11-21T15:37:37.8638799Z Executing: program /usr/bin/ssh host ***, user ***, command scp -v -r -t /home/***/yyzone/
2021-11-21T15:37:37.8669950Z OpenSSH_8.6p1, OpenSSL 1.1.1l  24 Aug 2021
2021-11-21T15:37:37.8670746Z debug1: Reading configuration data /etc/ssh/ssh_config
2021-11-21T15:37:37.8671724Z debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
2021-11-21T15:37:37.8672785Z debug1: Connecting to *** [***] port 22.
2021-11-21T15:37:38.0827359Z debug1: Connection established.
2021-11-21T15:37:38.0828802Z debug1: identity file /root/.ssh/id_rsa type -1
2021-11-21T15:37:38.0829902Z debug1: identity file /root/.ssh/id_rsa-cert type -1
2021-11-21T15:37:38.0830848Z debug1: identity file /root/.ssh/id_dsa type -1
2021-11-21T15:37:38.0831941Z debug1: identity file /root/.ssh/id_dsa-cert type -1
2021-11-21T15:37:38.0832888Z debug1: identity file /root/.ssh/id_ecdsa type -1
2021-11-21T15:37:38.0833850Z debug1: identity file /root/.ssh/id_ecdsa-cert type -1
2021-11-21T15:37:38.0834830Z debug1: identity file /root/.ssh/id_ecdsa_sk type -1
2021-11-21T15:37:38.0835804Z debug1: identity file /root/.ssh/id_ecdsa_sk-cert type -1
2021-11-21T15:37:38.0836774Z debug1: identity file /root/.ssh/id_ed25519 type -1
2021-11-21T15:37:38.0837735Z debug1: identity file /root/.ssh/id_ed25519-cert type -1
2021-11-21T15:37:38.0838706Z debug1: identity file /root/.ssh/id_ed25519_sk type -1
2021-11-21T15:37:38.0839675Z debug1: identity file /root/.ssh/id_ed25519_sk-cert type -1
2021-11-21T15:37:38.0840624Z debug1: identity file /root/.ssh/id_xmss type -1
2021-11-21T15:37:38.0841562Z debug1: identity file /root/.ssh/id_xmss-cert type -1
2021-11-21T15:37:38.0842901Z debug1: Local version string SSH-2.0-OpenSSH_8.6
2021-11-21T15:37:38.3020930Z debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.10
2021-11-21T15:37:38.3022799Z debug1: compat_banner: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.10 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
2021-11-21T15:37:38.3024853Z debug1: Authenticating to ***:22 as '***'
2021-11-21T15:37:38.3026030Z debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory
2021-11-21T15:37:38.3027020Z debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
2021-11-21T15:37:38.3028003Z debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
2021-11-21T15:37:38.3028805Z debug1: SSH2_MSG_KEXINIT sent
2021-11-21T15:37:38.5210789Z debug1: SSH2_MSG_KEXINIT received
2021-11-21T15:37:38.5213200Z debug1: kex: algorithm: curve25519-sha256@libssh.org
2021-11-21T15:37:38.5215342Z debug1: kex: host key algorithm: ssh-ed25519
2021-11-21T15:37:38.5217637Z debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
2021-11-21T15:37:38.5220364Z debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
2021-11-21T15:37:38.5223753Z debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
2021-11-21T15:37:38.7419652Z debug1: SSH2_MSG_KEX_ECDH_REPLY received
2021-11-21T15:37:38.7422748Z debug1: Server host key: ssh-ed25519 SHA256:DXlTrYo3UT7I87rHD9jqAkbBY0u06AzRY/kkzx3UWyc
2021-11-21T15:37:38.7424959Z debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory
2021-11-21T15:37:38.7426694Z debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
2021-11-21T15:37:38.7428436Z debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
2021-11-21T15:37:38.7431170Z Warning: Permanently added '***' (ED25519) to the list of known hosts.
2021-11-21T15:37:38.7433036Z debug1: check_host_key: hostkey not known or explicitly trusted: disabling UpdateHostkeys
2021-11-21T15:37:38.7517013Z debug1: rekey out after 134217728 blocks
2021-11-21T15:37:38.7517831Z debug1: SSH2_MSG_NEWKEYS sent
2021-11-21T15:37:38.7518493Z debug1: expecting SSH2_MSG_NEWKEYS
2021-11-21T15:37:38.7519167Z debug1: SSH2_MSG_NEWKEYS received
2021-11-21T15:37:38.7519814Z debug1: rekey in after 134217728 blocks
2021-11-21T15:37:38.7520683Z debug1: Will attempt key: /root/.ssh/id_rsa 
2021-11-21T15:37:38.7521540Z debug1: Will attempt key: /root/.ssh/id_dsa 
2021-11-21T15:37:38.7522352Z debug1: Will attempt key: /root/.ssh/id_ecdsa 
2021-11-21T15:37:38.7523180Z debug1: Will attempt key: /root/.ssh/id_ecdsa_sk 
2021-11-21T15:37:38.7524029Z debug1: Will attempt key: /root/.ssh/id_ed25519 
2021-11-21T15:37:38.7524853Z debug1: Will attempt key: /root/.ssh/id_ed25519_sk 
2021-11-21T15:37:38.7525671Z debug1: Will attempt key: /root/.ssh/id_xmss 
2021-11-21T15:37:38.7526451Z debug1: SSH2_MSG_EXT_INFO received
2021-11-21T15:37:38.7527931Z debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
2021-11-21T15:37:39.2199549Z debug1: SSH2_MSG_SERVICE_ACCEPT received
2021-11-21T15:37:39.4361337Z debug1: Authentications that can continue: publickey
2021-11-21T15:37:39.4363379Z debug1: Next authentication method: publickey
2021-11-21T15:37:39.4364769Z debug1: Trying private key: /root/.ssh/id_rsa
2021-11-21T15:37:39.4366039Z debug1: Trying private key: /root/.ssh/id_dsa
2021-11-21T15:37:39.4367492Z debug1: Trying private key: /root/.ssh/id_ecdsa
2021-11-21T15:37:39.4368860Z debug1: Trying private key: /root/.ssh/id_ecdsa_sk
2021-11-21T15:37:39.4370174Z debug1: Trying private key: /root/.ssh/id_ed25519
2021-11-21T15:37:39.4371498Z debug1: Trying private key: /root/.ssh/id_ed25519_sk
2021-11-21T15:37:39.4372796Z debug1: Trying private key: /root/.ssh/id_xmss
2021-11-21T15:37:39.4373761Z debug1: No more authentication methods to try.
2021-11-21T15:37:39.4375748Z ***@***: Permission denied (publickey).
2021-11-21T15:37:39.4376789Z lost connection
2021-11-21T15:37:39.4388623Z /with_key.sh: line 22: exit: 1 : numeric argument required
2021-11-21T15:37:39.4389871Z 😢 Something went wrong during upload
2021-11-21T15:37:39.5549499Z Post job cleanup.
2021-11-21T15:37:39.8610747Z Post job cleanup.
``