I made a small tutorial on how to set up key authentication with an OpenBSD server.
#openbsd #vps
https://www.graslander.online/index.php/disable-password-authentication-for-openssh/
I made a small tutorial on how to set up key authentication with an OpenBSD server.
#openbsd #vps
https://www.graslander.online/index.php/disable-password-authentication-for-openssh/
@graslander at first, I thought you wrote about setting up a PKI on OpenBSD
As you use keys to authenticate clients, you still rely on TOFU when connecting to the server, you have two solutions to solve this:
- use SSH certificates to authenticate both clients and servers
- use SSHFP DNS entries
I covered the second system if you are interested https://dataswamp.org/~solene/2023-08-05-sshfp-dns-entries.html
@mischa @graslander I never thought doing it this way :flan_aww:
@graslander nice! Changing the settings in rc.conf.local might be even easier:
# rcctl set sshd flags -o PasswordAuthentication=no
@joel @mischa @graslander on systemd you can override the service to change the ExecStart property to add arguments to it
@solene @mischa neither did I.
I keep editing the config file. Probably because that works on every OS.
I wonder if/how that would work with SystemD based stuff.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.