A lot more automation for ssh.
(And I probably broke something, but we'll see!)
This commit is contained in:
12
ssh/prologue
Normal file
12
ssh/prologue
Normal file
@ -0,0 +1,12 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user