rapier1 / hpn-ssh

HPN-SSH based on OpenSSH
https://psc.edu/hpn-ssh-home
Other
302 stars 41 forks source link

/etc/hpnssh/sshd_config and `Include /etc/ssh/sshd_config.d/*.conf` #71

Closed gdevenyi closed 3 months ago

gdevenyi commented 3 months ago

The default config is Including the configuration from the system sshd.

Should this instead by Include /etc/hpnssh/sshd_config.d/*.conf?

rapier1 commented 3 months ago

Which distribution is this for?

gdevenyi commented 3 months ago

Latest release for Ubuntu Jammy from the PPA

rapier1 commented 3 months ago

Ah, in that case this is intentional because things get complicated. The goal of the distribution specific packages are for them to mirror the standard OpenSSH packages as much as possible. Which is why it's looking in /etc/ssh/sshd_config.d because, if I remember correctly, Ubuntu was hiding some compatible config options in there when I developed the deb. It looks like they might not be using it anymore though. I'll need to make some decisions on the next release if I want to maintain things as they are or update them to just use /etc/hpnssh/.

gdevenyi commented 3 months ago

Got it, makes sense, I can definitely understand the motivation

rapier1 commented 3 months ago

I'll make a decision for the next release (hopefully next week as 9.7 recently came out) and document it if that changes. I'll keep this open for now just to remind me. As an aside, I did update the documentation about the ports, port fallback, and ConnectTimeout in the man pages. That will be available in the 18.4.0 release.

rapier1 commented 3 months ago

I've changed the default location for Includes to point at /etc/hpnssh/ssh[d]_config.d/. Turns out that I'm also doing that the the Fedora release so I might as well keep it consistent. This likely won't break any/many installs because it looks like Ubuntu doesn't make use of /etc/ssh/ssh[d].config.d/ in their release.