# HG changeset patch # User Pascal Bellard # Date 1489309644 -3600 # Node ID 8211a9c470d67ef097f2d59996d41785c1693389 # Parent e23fd880d81b58de91f9e62d36fdffcf9496016b dropbear/sshx: allow localhost connection diff -r e23fd880d81b -r 8211a9c470d6 dropbear/stuff/sshx --- a/dropbear/stuff/sshx Sun Mar 12 09:47:07 2017 +0100 +++ b/dropbear/stuff/sshx Sun Mar 12 10:07:24 2017 +0100 @@ -16,8 +16,9 @@ *) break ;; esac done + xhost +localhost > /dev/null 2>&1 [ -n "$1" ] || set -- "${TERM:-xterm} -ls || ${TERM:-sakura} -l || xterm -ls" - exec dbclient -f -R $((6000+$n)):localhost:$((6000+${svr%.*})) $r \ + exec dbclient -y -f -R $((6000+$n)):localhost:$((6000+${svr%.*})) $r \ "xauth add $dpy $data; export DISPLAY=$scr; $@ ; xauth remove $dpy" \ /dev/null }