assh icon indicating copy to clipboard operation
assh copied to clipboard

virt-manger can't use SSH connections when ASSH_CONFIG is set to non-default value

Open pschmitt opened this issue 8 years ago • 1 comments

I'm a big proponent of storing all configuration in XDG_CONFIG_HOME so that HOME stays clean and was pleased to discover that assh's config can be moved there via ASSH_CONFIG_HOME and the --config flag. What I did is adding export ASSH_CONFIG_HOME=${XDG_CONFIG_HOME}/assh/assh.yml to my shell's config file. CLI works as expected, but GUI apps may not all source this file.

When using virt-manager and setting ASSH_CONFIG to something else than ~/.ssh/assh.yml all SSH connections are broken. Other applications may be misbehaving similarly.

This can easily be fixed by manually editing ~/.ssh/config to include the --config flag:

Host *
  ProxyCommand assh --config=/home/pschmitt/.config/assh/assh.yml connect --port=%p %h

... but this gets overridden each time assh regenerates the config. Wouldn't it make sense to make assh add --config=CURRENT_VALUE_OF_ASSH_CONFIG?

pschmitt avatar Jul 16 '17 08:07 pschmitt

Hi @pschmitt, thank you for your feedback,

That's a good idea, I was thinking about something equivalent when looking for a solution to fix #258

I will give a try and ping you back here

moul avatar Jul 17 '17 07:07 moul