4 ms·
</etc/ssh/sshd_config grep PasswordAuthentication
by pmalynin 8y ago
</etc/ssh/sshd_config grep PasswordAuthentication
- sametmax 8y agoI've been taught wrong and I've done it wrong for 15 years O_o Thank you. It reminds me of the idiom of putting "# -- coding: utf-8 --" at the top of Python 2.x files. Which is incredibly useful, but nobody remembers, and googles everytime. This comes from the fact the first famous tutorials on Python where written by emacs users, and this editor recognizes this idiom. But fun fact, the regex matching this line is "^[ \t\v]#.?coding[:=][ \t]*([-_.a-zA-Z0-9]+)" (see https://www.python.org/dev/peps/pep-0263/ https://www.python.org/dev/peps/pep-0263/) and accepts many variations (including a vim format). The simplest variation is the dumb "# coding: utf8", which is not only straightforward and easy to remember, but way less magical for anybody reading the code. Bottom line, if you are stuck in 2.x, use "# coding: utf8".