emdash icon indicating copy to clipboard operation
emdash copied to clipboard

SSH connection fails for work hosts resolved through system SSH config

Open harshit97 opened this issue 5 months ago • 3 comments

I'm trying to add a corporate/internal SSH host to Emdash. The same host works from Terminal, but Emdash fails when I enter it manually.

I'm using placeholders here because the real hostname and proxy command are work-internal.

Setup

  • macOS
  • Emdash 1.1.35
  • The host is something like work-host.internal.example
  • ssh work-host.internal.example works in Terminal
  • ssh -G work-host.internal.example shows that OpenSSH is using a ProxyCommand and agent forwarding
  • That config comes from a wildcard Host *.internal.example rule in the system SSH config, not from a concrete host entry in ~/.ssh/config

What happens in Emdash

When I add the host manually and test the connection, Emdash appears to try connecting directly to the hostname. The test fails with:

getaddrinfo ENOTFOUND work-host.internal.example

That looks like Emdash is not using the same resolved SSH config that ssh uses for this host.

What I expected

I expected a way to add this as an SSH-config-backed connection by typing the host/alias and having Emdash resolve it with ssh -G.

This would cover corporate setups where hosts are handled by wildcard rules in /etc/ssh/ssh_config or included system config files, rather than concrete entries in ~/.ssh/config.

harshit97 avatar Jun 30 '26 15:06 harshit97

@harshit97, Thanks for the detailed report. We should handle that better. We’ll look into resolving manually entered hostss and update you here shortly!

arnestrickmann avatar Jul 01 '26 09:07 arnestrickmann

opened a pr for this: https://github.com/generalaction/emdash/pull/3136

thedhruvhegde avatar Sep 06 '26 19:09 thedhruvhegde

closing this, was fixed in #3191

jschwxrz avatar Sep 21 '26 10:09 jschwxrz