git: 5ef98cb7a74b - stable/14 - openssh: Fix shosts.equiv path in manual pages

From: Jose Luis Duran <jlduran_at_FreeBSD.org>
Date: Mon, 31 Aug 2026 17:32:04 UTC
The branch stable/14 has been updated by jlduran:

URL: https://cgit.FreeBSD.org/src/commit/?id=5ef98cb7a74b0dc5d23fee22fbb6ff3d19fc1c9b

commit 5ef98cb7a74b0dc5d23fee22fbb6ff3d19fc1c9b
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2026-08-25 17:27:28 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2026-08-31 17:30:42 +0000

    openssh: Fix shosts.equiv path in manual pages
    
    Change the path for the shosts.equiv file to consistently reflect
    /etc/ssh/shosts.equiv across all manual pages.
    
    This change stems from 35d4ccfb5576 ("Document FreeBSD defaults and
    paths.")
    
    Reviewed by:    bcr, emaste
    Differential Revision:  https://reviews.freebsd.org/D52203
    
    (cherry picked from commit 336cc041a492b03fde96fd89915ae694cf31b551)
---
 crypto/openssh/ssh.1  | 4 ++--
 crypto/openssh/sshd.8 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/openssh/ssh.1 b/crypto/openssh/ssh.1
index 697f4e42a4a3..e7a7f39e610c 100644
--- a/crypto/openssh/ssh.1
+++ b/crypto/openssh/ssh.1
@@ -903,7 +903,7 @@ Host-based authentication works as follows:
 If the machine the user logs in from is listed in
 .Pa /etc/hosts.equiv
 or
-.Pa /etc/shosts.equiv
+.Pa /etc/ssh/shosts.equiv
 on the remote machine, the user is non-root and the user names are
 the same on both sides, or if the files
 .Pa ~/.rhosts
@@ -1624,7 +1624,7 @@ manual page for more information.
 This file is for host-based authentication (see above).
 It should only be writable by root.
 .Pp
-.It Pa /etc/shosts.equiv
+.It Pa /etc/ssh/shosts.equiv
 This file is used in exactly the same way as
 .Pa hosts.equiv ,
 but allows host-based authentication without permitting login with
diff --git a/crypto/openssh/sshd.8 b/crypto/openssh/sshd.8
index 3f5aa2618220..59ef0c98b8c1 100644
--- a/crypto/openssh/sshd.8
+++ b/crypto/openssh/sshd.8
@@ -958,7 +958,7 @@ are displayed to anyone trying to log in, and non-root connections are
 refused.
 The file should be world-readable.
 .Pp
-.It Pa /etc/shosts.equiv
+.It Pa /etc/ssh/shosts.equiv
 This file is used in exactly the same way as
 .Pa hosts.equiv ,
 but allows host-based authentication without permitting login with