X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE2023861034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1610772064; bh=aREjn/xecV9hRJmb4NyZaDE4ZePFJ89pOkLp0P6d0o0=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=kpPREmVuvxUR5VmbYLIItYQnG8DKUa1IHNG3+YJ9fp4sTWsuWT6fTTzOfRQH4hDC8 0a0ky+LMUa6MSlci+SRTCwwfpk5+UaedwgPxyPlwPQ1os5VRB8HLLte1s52fSzAwSk X9AKw/xOez5o4wc30PDO6q37fWRVXPM5BBNwQvYw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E23353861034 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qAAVN66a/6VQ+DPgfE+1FEJMYOuT57CgjAROMfeeFcM=; b=m1OSqfycgQGI+R5jXikYi4TSSY24dQ/oUWJ27Wq/Ft4MjBuDUK78w0GwyECdqHgniY DJAp1jWXfRbXQ2gd/BaZ7rJZh+RmSrq+YGj6RM3K6hO5h/JLDRci3OMORnrhs+fj0Gwm OVN2LcNA758J0AMr47G4R9+SCaMg+6Ex64ECscnLBPgAwuTm6XIMLGy8V+LmiJd5opZH Za+iG9kddkM+ed8fNPO9DISXCFqY9MeAw659PVkU6SamB0sUIlh+fHwWWP4Iu4oX5kkZ vM1mU5ec+a4CerUICZXf8PHNakgXNlRY/sn3AGylIle4V1MPvMfLd5ssKiJ+veiNOF6R 423w== X-Gm-Message-State: AOAM531aZS32NFY//Tt04bdpxbMFeIqCG73oJ2x3ortBhG5+dG48colr OK4251cN+MdEGNCE6Qn3WRPP/LqG04E5tQ== X-Google-Smtp-Source: ABdhPJxwykpUkvbNB23r+PjAmGRfJCtVHM+IyAu7w+euxQ0PZ0pHN9H36hqiR3N1bmpRzyTqNiiyRA== X-Received: by 2002:a17:906:2e0d:: with SMTP id n13mr10622928eji.554.1610772061054; Fri, 15 Jan 2021 20:41:01 -0800 (PST) Subject: Re: Can't open display issue from CMD To: cygwin AT cygwin DOT com References: Message-ID: <2c7fc63e-9c18-b90d-348c-40c1401cd273@gmail.com> Date: Sat, 16 Jan 2021 05:40:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: it X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Marco Atzeri via Cygwin Reply-To: Marco Atzeri Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 16.01.2021 05:22, Luna Bellofiore via Cygwin wrote: > All, > > I am sending Linux commands from CMD (Windows) through SSH, and I am > getting "Can't open display". Below I am capturing my issue, the IP number > is the remote Linux machine. > > Microsoft Windows [Version 10.0.19042.746] > (c) 2020 Microsoft Corporation. All rights reserved. > > C:\Users\bellsal>\cygwin\bin\ssh 192.168.0.8 pwd > /usr/bin/xrdb: Can't open display '' > /home/bellsal It seems the remote machine is expecting to run a X interface by default. Or you have the startX (or similar) in the personal login scripts The expect behaviour on a Unix machine (Cygwin or Linux) is: $ ssh 127.0.0.1 pwd Marco AT 127 DOT 0 DOT 0 DOT 1's password: /home/Marco > PWD should not require X11 connection, so I don't understand why I am > getting this issue. Do I need to set an environment variable? If I need > an xterm from my remote Linux, I know I need to export the display, and > that works fine. But, I am only sending a simple command from the CMD > console. > > Thanks in advance. > > Sa; I suggest you to check the remote scripts. It does not seem a Cygwin side problem Marco -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple