tweak the example $HOME/.ssh/rc script to not show on any cmdline the
sensitive data it handles. This fixes bug # 402 as reported by kolya@mit.edu (Nickolai Zeldovich).
This commit is contained in:
parent
a94ce5a752
commit
5431e7941f
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: sshd.8,v 1.29 2002/07/08 14:39:53 itojun Exp $
|
||||
.\" $NetBSD: sshd.8,v 1.30 2002/09/25 03:43:19 itojun Exp $
|
||||
.\" -*- nroff -*-
|
||||
.\"
|
||||
.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
|
@ -724,12 +724,12 @@ something similar to:
|
|||
if read proto cookie && [ -n "$DISPLAY" ]; then
|
||||
if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
|
||||
# X11UseLocalhost=yes
|
||||
xauth add unix:`echo $DISPLAY |
|
||||
echo add unix:`echo $DISPLAY |
|
||||
cut -c11-` $proto $cookie
|
||||
else
|
||||
# X11UseLocalhost=no
|
||||
xauth add $DISPLAY $proto $cookie
|
||||
fi
|
||||
echo add $DISPLAY $proto $cookie
|
||||
fi | xauth -q -
|
||||
fi
|
||||
.Ed
|
||||
.Pp
|
||||
|
|
Loading…
Reference in New Issue