|
|
|
Use the ssh man page as a starting point for sshd_config
I had the same problem. Then I realized that for some reason all of the \'s were missing.
Here's the diff FWIW: cva:~ $ diff sshd_config_py.txt sshd_config.py 50c50 < pat = r'^(# [A-Z]+[a-z][a-zA-Z]*)s{2,}(S.*)$' --- > pat = r'^(# [A-Z]+[a-z][a-zA-Z]*)\s{2,}(\S.*)$' 73c73 < pat = r'^(#)?([A-Z][a-z][a-zA-Z]+)s+(.*)$' --- > pat = r'^(#)?([A-Z][a-z][a-zA-Z]+)\s+(.*)$' 82c82 < new[index] = '# %s %sn' % (option, value) --- > new[index] = '# %s %s\n' % (option, value) 84c84 < new[index] += 'n%s %snn' % (option, value) --- > new[index] += '\n%s %s\n\n' % (option, value)
Use the ssh man page as a starting point for sshd_config
oops, looks like I missed a couple. Here's the real diff ;)
cva:~ $ diff sshd_config_py.txt sshd_config.py 50c50 < pat = r'^(# [A-Z]+[a-z][a-zA-Z]*)s{2,}(S.*)$' --- > pat = r'^(# [A-Z]+[a-z][a-zA-Z]*)\s{2,}(\S.*)$' 57,58c57,58 < new.append("%sn" % option) < new.append("# %sn" % text) --- > new.append("%s\n" % option) > new.append("# %s\n" % text) 73c73 < pat = r'^(#)?([A-Z][a-z][a-zA-Z]+)s+(.*)$' --- > pat = r'^(#)?([A-Z][a-z][a-zA-Z]+)\s+(.*)$' 82c82 < new[index] = '# %s %sn' % (option, value) --- > new[index] = '# %s %s\n' % (option, value) 84c84 < new[index] += 'n%s %snn' % (option, value) --- > new[index] += '\n%s %s\n\n' % (option, value) |
SearchFrom our Sponsor...What's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
The macosxhints PollWhat version of OS X are you running as your main OS?
Other polls | 11,482 votes | 42 comments
|
|
Copyright © 2009 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.03 seconds |
|