sshs icon indicating copy to clipboard operation
sshs copied to clipboard

fail with `config:32: config variable before Host variable`

Open simkimsia opened this issue 9 months ago • 3 comments

similar to #1

Include ~/.orbstack/ssh/config

ControlMaster auto
ControlPath /tmp/%r@%h:%p


Host ssh-cpopv2
  HostName abc..

simkimsia avatar Oct 06 '23 03:10 simkimsia

I met the same problem with

Include ~/.orbstack/ssh/config

ForwardX11 yes

I guess sshs does not support ForwardX11 yes.

jingfelix avatar Nov 24 '23 06:11 jingfelix

I believe this happens because of the currently used parser, more precisely here.

I though about opening an issue, but it looks like it is advised in the OpenSSH specification to put the Host's first and other parameters after them. image

Maybe, @simkimsia you could try something like

Host ssh-cpopv2
  HostName abc..
  
Include ~/.orbstack/ssh/config

ControlMaster auto
ControlPath /tmp/%r@%h:%p

and tell us if thats the case.

NOTE: my config is looking like that, with the Include on top, and works correctly.

Include ~/.orbstack/ssh/config

Host ssh-cpopv2
  HostName abc..
  
ControlMaster auto
ControlPath /tmp/%r@%h:%p

As for the ForwardX11 if I put it at the very end of my config, it works correctly. Hope that solves your issue @jingfelix

Hope this helps.

userwiths avatar Feb 12 '24 15:02 userwiths

@userwiths It works, thanks so much!

jingfelix avatar Feb 12 '24 16:02 jingfelix