Skip to content

Commit

Permalink
openssh-7.1: Set path for xauth
Browse files Browse the repository at this point in the history
Currently the warning below is shown, logging in over SSH.

```
> ssh deinemuddah
Warning: No xauth data; using fake authentication data for X11 forwarding.
```

As a result, forwarding X programs does not work anymore.

```
> xclock
Error: Can't open display:
```

The problem is, that the xauth binary is hard-coded into the SSHD binary
during build time, and set to `/usr/X11R6/bin/xauth`.

```
> strings /usr/sbin/sshd | grep X11R
/usr/X11R6/bin/xauth
```

So manually set it to `/usr/bin/xauth`, as this is where it’s stored in
Mariux.

Debian does the same [1].

[1] https://anonscm.debian.org/cgit/pkg-ssh/openssh.git/tree/debian/rules#99
  • Loading branch information
pmenzel committed Jun 16, 2016
1 parent cdce661 commit 1ffac77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openssh-7.1_p2-0.bee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ mee_configure() {
--sysconfdir=${SYSCONFDIR} \
--with-md5-passwords \
--with-privsep-path=/var/lib/sshd \
--with-pam
--with-pam \
--with-xauth=/usr/bin/xauth
}

mee_install_post() {
Expand Down

0 comments on commit 1ffac77

Please sign in to comment.