--target-host option seem not to properly work #1864

Open
opened 2024-08-08 21:57:00 +00:00 by mrvandalo · 0 comments
Contributor

I started an NixOS on a USB-Stick using qemu, with this command.

sudo qemu-kvm \
   -m 4G \
   -drive file=/dev/sdc,format=raw,index=0,media=disk \
   -net user,hostfwd=tcp:127.0.0.1:2222-:22 \
   -net nic

I want to use clan machines update on that maschine with the --target-host (as well as setting clan.core.networking.targetHost)
But it seems it does not pick up the port (2222 I set). You can see it's working during secret sync but after that it does forgets the port).

> clan machines update --target-host root@127.0.0.1:2222 usbstick
All secrets and facts are already up to date
All secrets and facts are already up to date
[usbstick] $ cat /etc/secrets/.pass_info
The authenticity of host '[127.0.0.1]:2222 ([127.0.0.1]:2222)' can't be established.
ED25519 key fingerprint is SHA256:mmH0/yae/BIr4QGODuQNt4f2UYcIR/BpoCgPvIUBpiU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
[usbstick] Warning: Permanently added '[127.0.0.1]:2222' (ED25519) to the list of known hosts.
INFO: Secrets already up to date
warning: Git tree '/home/palo/dev/nixos/nixos-config' is dirty
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ED25519 key fingerprint is SHA256:aGkN/f1CmFdub8t4b9R4ZYnzWGkhl+M5X0Emj8sJiBs.
This host key is known by the following other names/addresses:
    /etc/ssh/ssh_known_hosts:11: cream,cream.bear,cream.private
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.
error: failed to start SSH connection to 'root@127.0.0.1'
I started an NixOS on a USB-Stick using qemu, with this command. ``` sudo qemu-kvm \ -m 4G \ -drive file=/dev/sdc,format=raw,index=0,media=disk \ -net user,hostfwd=tcp:127.0.0.1:2222-:22 \ -net nic ``` I want to use `clan machines update` on that maschine with the `--target-host` (as well as setting `clan.core.networking.targetHost`) But it seems it does not pick up the port (`2222` I set). You can see it's working during secret sync but after that it does forgets the port). ``` > clan machines update --target-host root@127.0.0.1:2222 usbstick All secrets and facts are already up to date All secrets and facts are already up to date [usbstick] $ cat /etc/secrets/.pass_info The authenticity of host '[127.0.0.1]:2222 ([127.0.0.1]:2222)' can't be established. ED25519 key fingerprint is SHA256:mmH0/yae/BIr4QGODuQNt4f2UYcIR/BpoCgPvIUBpiU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes [usbstick] Warning: Permanently added '[127.0.0.1]:2222' (ED25519) to the list of known hosts. INFO: Secrets already up to date warning: Git tree '/home/palo/dev/nixos/nixos-config' is dirty The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established. ED25519 key fingerprint is SHA256:aGkN/f1CmFdub8t4b9R4ZYnzWGkhl+M5X0Emj8sJiBs. This host key is known by the following other names/addresses: /etc/ssh/ssh_known_hosts:11: cream,cream.bear,cream.private Are you sure you want to continue connecting (yes/no/[fingerprint])? no Host key verification failed. error: failed to start SSH connection to 'root@127.0.0.1' ```
kenji added the
bug
label 2024-08-09 07:55:52 +00:00
kenji added the
bootstrapping
label 2024-08-14 21:28:18 +00:00
kenji added the
networking
label 2024-08-30 13:35:45 +00:00
kenji added this to the Clan_Kanban_Board project 2024-08-30 13:35:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
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: clan/clan-core#1864
No description provided.