You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
532 B
22 lines
532 B
#!/bin/sh
|
|
|
|
if [ -x /etc/ssh/sshrc ]; then
|
|
. /etc/ssh/sshrc
|
|
fi
|
|
|
|
if [ -n "$SSH_AUTH_SOCK" ]; then
|
|
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
|
|
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
|
|
fi
|
|
|
|
# example sshrc file
|
|
if read proto cookie && [ -n "$DISPLAY" ]; then
|
|
if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
|
|
# X11UseLocalhost=yes
|
|
echo add unix:`echo $DISPLAY |
|
|
cut -c11-` $proto $cookie
|
|
else
|
|
# X11UseLocalhost=no
|
|
echo add $DISPLAY $proto $cookie
|
|
fi | xauth -q -
|
|
fi
|
|
|