ci: debug Host key verification failed error #204
13
.drone.yml
13
.drone.yml
|
@ -28,17 +28,14 @@ steps:
|
||||||
PRIVATE_SSH_KEY:
|
PRIVATE_SSH_KEY:
|
||||||
from_secret: ci_private_ssh_key
|
from_secret: ci_private_ssh_key
|
||||||
SSH_HOST_KEY: "80.244.242.4 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE7XTCHfX6ta8EtkdOcZLnpdhMmXDfTebVMs4NC8JEPj"
|
SSH_HOST_KEY: "80.244.242.4 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE7XTCHfX6ta8EtkdOcZLnpdhMmXDfTebVMs4NC8JEPj"
|
||||||
# SSH uses HOME from /etc/passwd, not from the environment, so override it
|
|
||||||
SSHOPTS: "-o UserKnownHostsFile=$$HOME/.ssh/known_hosts -i $$HOME/.ssh/id_ed25519 -v"
|
|
||||||
commands:
|
commands:
|
||||||
- mkdir $$HOME/.ssh && chmod 700 $$HOME/.ssh
|
- mkdir $$HOME/.ssh && chmod 700 $$HOME/.ssh
|
||||||
- echo "$$PRIVATE_SSH_KEY" > $$HOME/.ssh/id_ed25519 && chmod 600 $$HOME/.ssh/id_ed25519
|
- echo "$$PRIVATE_SSH_KEY" > $$HOME/.ssh/id_ed25519 && chmod 600 $$HOME/.ssh/id_ed25519
|
||||||
- echo "$$SSH_HOST_KEY" > $$HOME/.ssh/known_hosts
|
- echo "$$SSH_HOST_KEY" > $$HOME/.ssh/known_hosts
|
||||||
- export SSHOPTS="$$SSHOPTS"
|
# SSH uses HOME from /etc/passwd, not from the environment, so override it
|
||||||
- echo DEBUG env
|
- export SSHOPTS="-o UserKnownHostsFile=$$HOME/.ssh/known_hosts -i $$HOME/.ssh/id_ed25519 -v"
|
||||||
- env
|
- echo DEBUG SSHOPTS
|
||||||
- echo DEBUG ls -alh $$HOME/.ssh
|
- echo $$SSHOPTS
|
||||||
- ls -alh $$HOME/.ssh
|
|
||||||
- "echo DEBUG: Using NIX_FLAGS: $$NIX_FLAGS"
|
- "echo DEBUG: Using NIX_FLAGS: $$NIX_FLAGS"
|
||||||
- nix $$NIX_FLAGS develop --command deploy --magic-rollback false --skip-checks --targets '.#host_001_momo_koeln' --ssh-opts="$$SSHOPTS"
|
- nix $$NIX_FLAGS develop --command deploy --magic-rollback false --skip-checks --targets '.#host_001_momo_koeln' --ssh-opts="$$SSHOPTS"
|
||||||
|
|
||||||
|
@ -166,6 +163,6 @@ volumes:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: bab6b28f9246366499ef7914aa84c8868321565330a8923b893f786e6c0db203
|
hmac: 6d2495181ae2acd3f3a44d34591ba79315862d22c1e62c580bfba1a4c4fe822a
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue