Looking for a working example of sshd_config setup fille

Jeffrey Walton noloader at gmail.com
Sat Aug 16 17:14:44 UTC 2025


On Sat, Aug 16, 2025 at 7:08 AM bruce <badouglas at gmail.com> wrote:

>
> Setting up ssh, and wanted to view what others may have as a
> working/secure sshd_config (ssh_config as well) files.
>
> Plenty of sites, but haven't yet run across a full example of a
> live/working sshd/ssh config file


# lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy

# cat /etc/ssh/sshd_config.d/10-nopasswd_auth.conf
# Disable passwords
PasswordAuthentication no
ChallengeResponseAuthentication no
KerberosAuthentication no
KerberosOrLocalPasswd no
GSSAPIAuthentication no
UsePAM no

# cat /etc/ssh/sshd_config.d/15-pubkey_auth.conf
# Enable public key
PubkeyAuthentication yes

# cat /etc/ssh/sshd_config.d/20-no_root_login.conf
PermitRootLogin no

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20250816/0c2fc61a/attachment.html>


More information about the ubuntu-users mailing list