Files
cshenv/ssh/prologue
ADAM David Alan Martin f31647d198 A lot more automation for ssh.
(And I probably broke something, but we'll see!)
2025-03-07 23:11:04 -05:00

13 lines
498 B
Plaintext

# This scans your resolver and then custom-creates a config file
# for your current resolver situation.
#
# That config uses Canonicalization to emulate what your local resolver
# does in these circumstances.
Match exec 'rm -f ~/ssh/search | false'
Match exec 'grep "^search" /etc/resolv.conf ' exec 'grep search /etc/resolv.conf | awk \'{print "Host *\n\tCanonicalDomains "$2"\n\tCanonicalizeHostname yes\n# v""im:ft=sshconfig"}\' > ~/.ssh/search'
Include ~/.ssh/search
# vim: ft=sshconfig