summaryrefslogtreecommitdiff
path: root/sshd.8
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-08-30 11:07:00 +1000
committerDamien Miller <djm@mindrot.org>2006-08-30 11:07:00 +1000
commit5d43d4901496159611ab7b431caf9a9c08ecbdcd (patch)
treec44fb8a2d975102f387d69e824d70469eb16803d /sshd.8
parentb594f38bae891e5149e3c0a7e6d7b4d501b50c01 (diff)
- dtucker@cvs.openbsd.org 2006/08/21 08:15:57
[sshd.8] Add more detail about what permissions are and aren't accepted for authorized_keys files. Corrections jmc@, ok djm@, "looks good" jmc@
Diffstat (limited to 'sshd.8')
-rw-r--r--sshd.818
1 files changed, 16 insertions, 2 deletions
diff --git a/sshd.8 b/sshd.8
index 778ea906b..522279ee3 100644
--- a/sshd.8
+++ b/sshd.8
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: sshd.8,v 1.233 2006/07/19 13:07:10 dtucker Exp $ 37.\" $OpenBSD: sshd.8,v 1.234 2006/08/21 08:15:57 dtucker Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSHD 8 39.Dt SSHD 8
40.Os 40.Os
@@ -681,9 +681,23 @@ rlogin/rsh.
681.It ~/.ssh/authorized_keys 681.It ~/.ssh/authorized_keys
682Lists the public keys (RSA/DSA) that can be used for logging in as this user. 682Lists the public keys (RSA/DSA) that can be used for logging in as this user.
683The format of this file is described above. 683The format of this file is described above.
684This file is not highly sensitive, but the recommended 684The content of the file is not highly sensitive, but the recommended
685permissions are read/write for the user, and not accessible by others. 685permissions are read/write for the user, and not accessible by others.
686.Pp 686.Pp
687If this file, the
688.Pa ~/.ssh
689directory, or the user's home directory are writable
690by other users, then the file could be modified or replaced by unauthorized
691users.
692In this case,
693.Nm
694will not allow it to be used unless the
695.Cm StrictModes
696option has been set to
697.Dq no .
698The recommended permissions can be set by executing
699.Dq chmod go-w ~/ ~/.ssh ~/.ssh/authorized_keys .
700.Pp
687.It ~/.ssh/environment 701.It ~/.ssh/environment
688This file is read into the environment at login (if it exists). 702This file is read into the environment at login (if it exists).
689It can only contain empty lines, comment lines (that start with 703It can only contain empty lines, comment lines (that start with