Overview

I had an opportunity to copy build results to a Sakura rental server using GitHub Actions and SCP, so this is a memorandum of the process.

I used the following GitHub Action.

https://github.com/appleboy/scp-action

Issue Encountered

When I tried using the following notation, it worked fine when using act in the local environment, but it did not work when running on GitHub Actions.

nojanom:bbesu:[:inrs--plautsudmneunuwcs:espsasiph:-semethuppst]o:seshosaooafBn::::sesruriu:trstrgliaca:nw:ceelucopaoetsdbtpp$mr$::uiyl{ed{noe{::{"ytnfbtousios$$seu-/lye{{esrlce/c{{ct_ahsrrsstevcesse/eecipteetarska-sccs.vtoa.rr.teuscHeePxrtstOttOt_@hiSssR,tvoT..Tta4pnUPera@}SA}sgsm}ES}tesaRSstwsNW/_otAObfreMR.odrEDtlxd}}te}}"r_path

Specifically, the following error occurred:

GitHubactionsworkflowerror:ssh:handshakefailed:ssh:unabletoauthenticate,attemptedmethods[nonepassword],nosupportedmethodsremain

The following was helpful for resolving this issue.

https://stackoverflow.com/questions/71850567/github-actions-workflow-error-ssh-handshake-failed-ssh-unable-to-authenticat

Specifically, the error was resolved by using key and passphrase as shown below:

nojanom:bbesu:[:inrs--plautsudmneunuwcs:espsasiph:-semethukppst]o:seshoseaooafBn::::seysruriu:tr:strgliaca:np:ceelucopa$hetsdbtpp$m{a$::uiyl{e{s{noe{:e{"ytnfbs:tousios$eseu-/lye{c$esrlce/c{r{ct_ahsre{rsstevceste/eeciptesstarska-sc.es.vtoa.rPc.teuscHeRrPxrtstOtIeOt_@hiSsVtR,tvoT.AsTta4pnUT.era@}SEP}sgsm}E_A}tesaRKSstwsNES/_otAYPbfreMH.odrE}Rtl}Axd}Ste}E"r_}p}ath

Summary

I hope this serves as a useful reference for those experiencing similar issues.