Importing from ~/.ssh
If you already use OpenSSH, Detour can take your hosts, keys and known server keys from ~/.ssh.
Open Hosts and click Import from ~/.ssh (when the list isn't empty, it's in the ⋯ menu next to Add host). Detour reads your files and shows what it found; pick the hosts you want and click Import N hosts.
What is read
~/.ssh/config, the waysshreads it: the first value for an option wins,Host *defaults apply, patterns and negations (!host) work, andIncludefiles (with wildcards) are followed. Wildcard-only blocks such asHost *aren't hosts themselves.HostName,Port,User,IdentityFilebecome the host's address, port, user and key.ProxyJump, including chains, becomes a jump host. Jump hosts that aren't in your config are imported too.- Keys named by
IdentityFileare imported into Keys. A key with a passphrase is imported as is; Detour asks for the passphrase when it's first used. - A host with no
IdentityFilegets the keysshitself would use: the first of~/.ssh/id_rsa,id_ecdsaandid_ed25519that exists. With none of them, or withIdentityFile none, it logs in with ssh-agent. ~/.ssh/known_hosts: plain entries become trusted server keys, so you don't confirm them again. Hashed entries, wildcard patterns and@cert-authorityor@revokedlines are skipped.
Imported hosts go into the group SSH config; rename or regroup them afterwards as you like.
What isn't
ProxyCommandcan't be imported; such hosts are marked. Set up a jump host or proxy instead.- If a key file is missing, the host is imported with ssh-agent as its login.
- Hosts already in Detour are marked Already added and skipped.
Nothing in ~/.ssh is changed.
Hosts from another Detour come in a Detour file: From a Detour file… in the same dialog.