Support for ssh_config Include Statement


it would be great if CoreTunnel would support/respect the Include directive from ssh_config. As an alternative, it would help to include more than one ssh_config in the settings of CT.


Include the specified configuration file(s). Multiple pathnames may be specified and each pathname may contain glob(3) wildcards and, for user configurations, shell-like “~” references to user home directories. Files without absolute paths are assumed to be in ~/.ssh if included in a user configuration file or /etc/ssh if included from the system configuration file. Include directive may appear inside a Match or Host block to perform conditional inclusion.

Source: ssh_config(5).

best regards,


Hi Chris, Include directive is supported after Core Helper installed:

Hi Yang,
CoreHelper is installed - it doesn't work though. I'll try and gather some logs later today.
Anything obvious I could check? Settings->Advanced->Configuration is set to the default ~/.ssh/config ..

I was able to reproduce the issue on a new mac, latest MacOS, Core Helper installed:

A simple SSH config consisting of 3 files

Include ~/.ssh/lan
Include ~/.ssh/wan

Host alpha
HostKeyAlias alpha
Port 22
User chris
Identityfile ~/.ssh/keyfile

Host beta
HostKeyAlias beta
Port 22
User chris
Identityfile ~/.ssh/keyfile

CoreTunnel immediately goes into retrying with "connection failed".

Both equivalent ssh commands work on the commandline. Here's the log for host alpha up to "connection established"

#> ssh -4 -vvv -o ServerAliveInterval=15 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=3 chris@alpha

OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/chris/.ssh/config
debug3: /Users/chris/.ssh/config line 1: Including file /Users/chris/.ssh/lan depth 0
debug1: Reading configuration data /Users/chris/.ssh/lan
debug1: /Users/chris/.ssh/lan line 1: Applying options for alpha
debug3: /Users/chris/.ssh/config line 2: Including file /Users/chris/.ssh/wan depth 0
debug1: Reading configuration data /Users/chris/.ssh/wan
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: resolve_canonicalize: hostname is address
debug2: ssh_connect_direct
debug1: Connecting to [] port 22.
debug1: Connection established.

Hosts defined in ~/.ssh/config are working fine.

best regards,


Hi Chris, could you please enable debug logging in Core Tunnel and paste the log again?

This will help me identify the problem.

Thank you,

uhm, correct me if I'm wrong, but "debug3" will set -vvv for the command.
I've pasted the output of that up to "Connection established" in my previous post.

That's exactly my problem: CoreTunnel fails instantly while the equivalent command works. Is there a debug log for the Helper?


Did Core Tunnel printed any log? I understand that you've pasted log of the equivalent command, if any, could you please also paste the log of Core Tunnel?