Skip to content

Commit

Permalink
Include system-wide known_hosts files
Browse files Browse the repository at this point in the history
Include the system-wide known_hosts, including /etc/ssh/ssh_known_hosts (default) and /usr/local/etc/ssh/ssh_known_hosts (Homebrew openssh default)
  • Loading branch information
britcey authored Jul 10, 2019
1 parent dde3e3e commit 4f1270f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alfredssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def complete():
for results in (
fetch_file('~/.ssh/config', 'ssh_config', 'ssh_config', 'ssh_config'),
fetch_file('~/.ssh/known_hosts', 'known_hosts', 'known_hosts', 'known_hosts'),
fetch_file('/etc/ssh/ssh_known_hosts', 'systemwide_known_hosts', 'known_hosts', 'known_hosts'),
fetch_file('/usr/local/etc/ssh/ssh_known_hosts', 'localetc_known_hosts', 'known_hosts', 'known_hosts'),
fetch_file('/etc/hosts', 'hosts', 'hosts', 'hosts'),
fetch_bonjour()
):
Expand Down

0 comments on commit 4f1270f

Please sign in to comment.