Use system default `ssh_config` and `known_hosts` configuration


(Yang.Y) #1

By default, Core Tunnel uses configuration files in its own container folder:

# known_hosts
~/Library/Group Containers/

# ssh_config
~/Library/Group Containers/

This works very well in most of cases. But if you have a lengthy ~/.ssh/config or /etc/ssh/ssh_config, or have StrictHostKeyChecking set to yes and use ~/.ssh/known_hosts, /etc/ssh/ssh_known_hosts as the only source data trusted host keys, you may want to use system default configuration files instead.

You just need a few steps to enable system default configuration files:

1. Change locations to System

  1. Open Preferences… window, then click Locations.
  2. Change Known Hosts and / or Configuration to System.


2. Install Helper Tool

Core Tunnel may prompts you install a Helper tool, click Visit Website… to download and install the tool.


Consult the discussion in this thread if you are curious why a Helper is required:

3. Reenable

After install the Helper tool, reenable the options in 1st step again.

4. The End

Now Core Tunnel should read and use your configuration files in following sources:

  • User’s configuration file (~/.ssh/config)
  • System-wide configuration file (/etc/ssh/ssh_config)
  • Global host key database (/etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2)
  • User host key database (~/.ssh/known_hosts, ~/.ssh/known_hosts2)

:warning:️ Warning: the locations of known_hosts files may vary if your ssh_config file contains GlobalKnownHostsFile or UserKnownHostsFile directive.

Mac Store Core Tunnel Private SSH Keys and iCloud
FAQ – Core Shell
Multi-Hop Connection
Error connecting cisco 6500
FAQ – Core Tunnel
Mac Store Core Tunnel StrictHostKeyCheck
The authenticity of host ... can't be established - choice not persisted
Core Tunnel - ProxyCommand with other ssh connection
How to make Core Tunnel act like SSH Proxy
Core Shell to use ~.ssh/config
Core Tunnel 1.2 update is broken - help
How to use password protected private key
(Yang.Y) #2