Skip to content

can't deploy with SSH in CI #573

@joepio

Description

@joepio

I updated to a new server some time ago, which means I had to update my key and IP address, too. I suppose my github secrets are misconfigured.

https://github.com/atomicdata-dev/atomic-data-rust/actions/runs/4077035218/jobs/7026425755#step:7:82

Warning: Permanently added '***' (ED25519) to the list of known hosts.
Load key "/home/runner/.ssh/deploy_key_***_1675362362960": error in libcrypto
Permission denied, please try again.
Permission denied, please try again.
***@***: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]

rsync /home/runner/work/atomic-data-rust/atomic-data-rust/target/release/atomic-server ***@***:~/ --rsh "ssh -p 22 -i /home/runner/.ssh/deploy_key_***_1675362362960 -o StrictHostKeyChecking=no" --recursive --exclude= -rltgoDzvO

I've tried:

  • setting REMOTE_USER, REMOTE_HOST and SSH_PRIVATE_KEY again
  • Create new SSH keypair using RSA (previous was OPENSSH)
  • Other / older version of github action easingthemes/ssh-deploy@v3 (could be it, see issue)
  • Manually adding key to server... Worked!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions