ci: fix Host key verification failed #205

Merged
teutat3s merged 1 commit from momo/ci-deployment-known-hosts into momo/main 2023-03-08 13:13:04 +00:00
Owner
  • Fix missing SSH known_hosts in deploy pipeline
  • SSH tries to use Trust-On-First-Use (TOFU) interactively to add a new
    host key
  • Verbose SSH logs show:
debug1: Server host key: ssh-ed25519 SHA256:1bbksDNYBWSh/rIFP7MMfs557kWn1dM64bpXdnfBE5E
debug1: read_passphrase: can't open /dev/tty: No such device or address
  • deploy-rs uses nix, which uses SSH which doesn't use the environment variable
    HOME, but rather /etc/passwd to find a user's HOME
  • To solve this, we override SSH options using UserKnownHostsFile and
    the -i flag
- Fix missing SSH known_hosts in deploy pipeline - SSH tries to use Trust-On-First-Use (TOFU) interactively to add a new host key - Verbose SSH logs show: ``` debug1: Server host key: ssh-ed25519 SHA256:1bbksDNYBWSh/rIFP7MMfs557kWn1dM64bpXdnfBE5E debug1: read_passphrase: can't open /dev/tty: No such device or address ``` - deploy-rs uses nix, which uses SSH which doesn't use the environment variable HOME, but rather /etc/passwd to find a user's HOME - To solve this, we override SSH options using `UserKnownHostsFile` and the `-i` flag
teutat3s added 1 commit 2023-03-08 13:11:54 +00:00
ci: fix Host key verification failed
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
b21b98dadd
- Fix missing SSH known_hosts in deploy pipeline
- SSH tries to use Trust-On-First-Use (TOFU) interactively to add a new
  host key
- Verbose SSH logs show:
debug1: Server host key: ssh-ed25519 SHA256:1bbksDNYBWSh/rIFP7MMfs557kWn1dM64bpXdnfBE5E
debug1: read_passphrase: can't open /dev/tty: No such device or address
- deploy-rs uses nix, which uses SSH which doesn't use the environment variable
HOME, but rather /etc/passwd to find a user's HOME
- To solve this, we override SSH options using UserKnownHostsFile and
  the -i flag
teutat3s merged commit 43bd742150 into momo/main 2023-03-08 13:13:04 +00:00
teutat3s deleted branch momo/ci-deployment-known-hosts 2023-03-08 13:13:04 +00:00
Author
Owner

Related: #192

Related: #192
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pub-solar/os#205
No description provided.