This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how can I disable the warning about X11 forwarding
- From: Ken Jackson <cygwin at jackson dot io>
- To: cygwin at cygwin dot com
- Date: Sat, 10 Oct 2015 03:14:15 -0400
- Subject: Re: how can I disable the warning about X11 forwarding
- Authentication-results: sourceware.org; auth=none
- References: <dcce3c3876ff4fd0a63ce4d44b5b5a81 at DB4PR90MB0154 dot MGDPHG dot emi dot philips dot com> <56169E05 dot 7040703 at freenet dot de>
On 10/08/2015 12:47 PM, Peter wrote:
I want to allow some users to run an interactive program on my w2012
server via ssh.
The program is a console app so I do not need X forwarding.
Users are connecting via putty without an X server.
Alas they always get nagged with the
"WARNING: No xauth data; using fake authentication data for X11
forwarding."
Is there a way to get rid of this message?
I have this in my ~/.bashrc file to add xauth data:
if [ -n "$DISPLAY" -a -z "$(xauth list ":${DISPLAY#*:}" 2>/dev/null)" ]
then
xauth add "$DISPLAY" . "$(date | md5sum | cut -b1-32)"
fi
Alternately, try putting this in /etc/ssh_config:
ForwardX11 no
-Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple