backup-action icon indicating copy to clipboard operation
backup-action copied to clipboard

load pubkey "/github/home/.ssh/deploykey": invalid format

Open manuelmeurer opened this issue 3 years ago • 4 comments

I get the error (warning?) load pubkey "/github/home/.ssh/deploykey": invalid format during syncing. The sync seems to succeed regardless, though.

Full output:

[...]
==============================================
✅ Successfully executed commands to all host.
==============================================
🔄 Sync the mysql backups... 🗄
load pubkey "/github/home/.ssh/deploykey": invalid format
Warning: Permanently added '207.154.209.XXX' (ECDSA) to the list of known hosts.
receiving incremental file list
mysql-ghost_production.1908211222.sql.gz

              0   0%    0.00kB/s    0:00:00  
        616.55K 100%    1.25MB/s    0:00:00 (xfr#1, to-chk=0/1)

sent 51 bytes  received 603.34K bytes  172.40K bytes/sec
total size is 616.55K  speedup is 1.02
🤔 Whats the location of backups...
/github/workspace/backups
🔍 Show me backups... 😎
total 604K   
-rw-r--r--    1 ***     ***      602.1K Aug 19 12:22 mysql-ghost_production.1908211222.sql.gz

manuelmeurer avatar Aug 19 '21 12:08 manuelmeurer

@manuelmeurer It's because, You must be adding an id_rsa.pub key, You should add a private key file id_rsa.

dr5hn avatar Nov 14 '21 08:11 dr5hn

I pass in my private SSH key with the key keyword. Since the sync works, I'm pretty sure the format of the key is fine.

manuelmeurer avatar Nov 14 '21 13:11 manuelmeurer

Where is this "invalid format" message generated? I couldn't find it in the code of this action.

manuelmeurer avatar Nov 14 '21 13:11 manuelmeurer

That's generated on your server end.

dr5hn avatar Nov 27 '21 06:11 dr5hn