public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Jackson <cygwin@jackson.io>
To: cygwin@cygwin.com
Subject: Re: how can I disable the warning about X11 forwarding
Date: Sat, 10 Oct 2015 07:14:00 -0000	[thread overview]
Message-ID: <5618BAC7.4030505@jackson.io> (raw)
In-Reply-To: <56169E05.7040703@freenet.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

      parent reply	other threads:[~2015-10-10  7:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <dcce3c3876ff4fd0a63ce4d44b5b5a81@DB4PR90MB0154.MGDPHG.emi.philips.com>
2015-10-08 16:50 ` Peter
2015-10-08 19:05   ` Andrey Repin
2015-10-08 20:18     ` Peter
2015-10-10  7:14   ` Ken Jackson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5618BAC7.4030505@jackson.io \
    --to=cygwin@jackson.io \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).