Back to Codinn

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/E78WKS7W4U.io.coressh.ssh/.ssh/known_hosts

# ssh_config
~/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/config

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.

image

2. Install Helper Tool

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

image

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
Core Tunnel 1.2 update is broken - help
Mac Store Core Tunnel StrictHostKeyCheck
FAQ – Core Tunnel
The authenticity of host ... can't be established - choice not persisted
Multi-Hop Connection
How to use password protected private key