Replies: 3 comments 1 reply
-
Check the output of I’m not entirely sure that what you want is going to be able to happen, because it’s a git issue, not really a chezmoi issue. |
Beta Was this translation helpful? Give feedback.
-
As @halostatue says, this is a git issue. It has nothing to do with chezmoi. Please ask on the git support forums. |
Beta Was this translation helpful? Give feedback.
-
As twpayne mentioned, not a chezmoi issue. |
Beta Was this translation helpful? Give feedback.
-
I have set up SSH keys on my different machines lately.
On my desktop, where my
chezmoi
source directory is located, I have two Linux distros installed. The desktop has a static local IP address.To easily ssh into the desktop from my other machines, I'm using the following in
~/.ssh/config
(here, the one from a VM):the above allows me to use either:
from the VM, depending on which distro is running on my desktop. It works fine.
However, when I had initialized the
chezmoi
source directory on the VM, the SSH keys weren't set up so I used:❯ chezmoi --source "~/dotfiles" init --ssh user@desktop_ip_address:/path/to/my/bare/repository
As a result, now when I run
chezmoi update
from the VM, I guesschezmoi
is still looking for<desktop_ip_address>
in~/.ssh/known_hosts
instead of eitherarchlinux-desktop
orgentoo-desktop
:How should I configure
chezmoi
on the VM so that it can pull changes from the bare repository on my desktop, independently of which distro is booted on the desktop?I thought I could just do:
but I assume that if I use
gentoo-desktop
in the above command, then I won't be able to runchezmoi update
if my desktop is booted with Arch Linux and vice versa?Beta Was this translation helpful? Give feedback.
All reactions