| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org B35833858D1E |
| Authentication-Results: | sourceware.org; |
| dmarc=none (p=none dis=none) header.from=raelity.com | |
| Authentication-Results: | sourceware.org; spf=none smtp.mailfrom=raelity.com |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
| d=comcastmailservice.net; s=20211018a; t=1644756187; | |
| bh=dakC53V9/utSX3cy+jdrxQ/ZJkisIzY4Aow6yQd895s=; | |
| h=Received:Received:Message-ID:Date:MIME-Version:Subject:To:From: | |
| Content-Type; | |
| b=W+A2ccdGssO4SRef4J3GYGpA1gNBXgP4lfKMNtMayyTDwUb4BzfyhmS02XGOkhTQo | |
| Iu+ftdZsUW36scLd3fZPFZYYKgvX8uTm6wIIJJKNXAdins1PYwF6V/9GzEgvxDCt1y | |
| ikOMWAdzj4Kb+MIxBlTgTH6useOdz+zLejAd9w8rYyOwEtUphI+9fzi9z4Bgh1cwcB | |
| 9kSwNQwo+GIusxRHWGpk1DXv57VeRJSfLOjebUTCl5NAdaTe30sg/KWxKgZfHsd/Qf | |
| IvJnTQNB70iQYjzfIS84qxU3LbX3kNUzWaZTXyj8QldvEIDClASd/zguClqJ/ypqb2 | |
| CFddjHJwiQHjw== | |
| X-Xfinity-VAAS: | gggruggvucftvghtrhhoucdtuddrgedvvddrjedtgdeflecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomhepgfhrnhhivgcutfgrvghluceovghrrhesrhgrvghlihhthidrtghomheqnecuggftrfgrthhtvghrnhepveejjeeuleehgefftdelgeegteevkeefleevfefgvdejvefgieetjeekieevueetnecuffhomhgrihhnpehmihgtrhhoshhofhhtrdgtohhmpdgthihgfihinhdrtghomhenucfkphepudejgedriedvrdduvdegrddvvdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddvtdgnpdhinhgvthepudejgedriedvrdduvdegrddvvdehpdhmrghilhhfrhhomhepvghrrhesrhgrvghlihhthidrtghomhdpnhgspghrtghpthhtohepuddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhm |
| X-Xfinity-VMeta: | sc=0.00;st=legit |
| Message-ID: | <d00b72bf-da0a-c34a-d1a6-4e1a98ee99ab@raelity.com> |
| Date: | Sun, 13 Feb 2022 04:42:44 -0800 |
| MIME-Version: | 1.0 |
| User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 |
| Thunderbird/91.5.0 | |
| Subject: | Re: sshd |
| To: | cygwin AT cygwin DOT com |
| References: | <8207721e-0b0d-2314-6038-c430e1758e53 AT raelity DOT com> |
| <a267fb96-4f61-65d0-846a-9f55acd59ecb AT maxrnd DOT com> | |
| <CANV2+nXOw49RQBZOkEV_cDMQJHL-ut3t+8sko_8mggwEuK8oLQ AT mail DOT gmail DOT com> | |
| From: | Ernie Rael <err AT raelity DOT com> |
| In-Reply-To: | <CANV2+nXOw49RQBZOkEV_cDMQJHL-ut3t+8sko_8mggwEuK8oLQ@mail.gmail.com> |
| X-Spam-Status: | No, score=0.5 required=5.0 tests=BAYES_00, BODY_8BITS, |
| DKIM_SIGNED, DKIM_VALID, KAM_LINEPADDING, NICE_REPLY_A, SPF_HELO_NONE, | |
| SPF_NONE, TXREP, | |
| T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 | |
| X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) on |
| server2.sourceware.org | |
| X-BeenThere: | cygwin AT cygwin DOT com |
| X-Mailman-Version: | 2.1.29 |
| List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
| List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
| List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
| List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
| Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
| Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 21DChmZv028681 |
Thanks Russell,
cygrunsrv's running
$ cygrunsrv --list
sshd
$ cygrunsrv --query sshd
Service            : sshd
Display name       : CYGWIN sshd
Current State      : Running
Controls Accepted  : Stop
Command            : /usr/sbin/sshd -D
-ernie
On 2/12/22 10:30 PM, Russell VT wrote:
> Note that port 5972 isn't *really* what you want, as that's arbitrary...
> but port 22.
>
> Check the Windows firewall, as was already suggested (highly suspect, if
> you just timeout when trying to connect).
>
> If you try rebuilding what you did under Windows, you're likely going to
> want to look at *cygserver* and *cygrunsrv*, and NOT directly at sshd. It's
> in /usr/sbin, generally.
>
> Something like:
>
> $ cygrunsrv --list
> cygsshd
>
> $ cygrunsrv --query cygsshd
> Service : cygsshd
> Display name : CYGWIN cygsshd
> Current State : Stopped
> Command : /usr/sbin/sshd -D
>
>
> You might also look to the Windows System Utilities / Sysinternals
> <https://docs.microsoft.com/en-us/sysinternals/> (optional download), and
> the "Process Explorer" for more detailed Windows information at the tips of
> your fingers. They update every month or two, and are worth keeping
> "reasonably up to date." There's a plethora of Windows troubleshooting
> tools, and some fun stuff as-well.
>
> Cheers -
> Russell
>
>
>
>
>
>
>
> On Sat, Feb 12, 2022 at 9:30 PM Mark Geisert <mark AT maxrnd DOT com> wrote:
>
>> Ernie Rael wrote:
>>> Hi all,
>>>
>>> I set up cygwin several years ago and have only had one system at home.
>> I've
>>> recently got a 2nd, linux.
>>>
>>> I've used ssh locally under cygwin, primarily to get a term for a use
>> with admin
>>> priv. And I can ssh from cygwin to the linux machine. On cygwin I see
>>>
>>> $ ps -ef |grep sshd
>>> cyg_serv 255 254 ? Feb 1 /usr/sbin/sshd
>>>
>>> But ssh from linux to cygwin hangs (finally times out). Ping works linux
>> --> windows.
>>> I must have run ssh-host-config way back when. Can I just run it again?
>>>
>>> Suggestions for something else to try and/or triage the problem?
>> You might try the following. Determine the Windows pid of your sshd
>> process, then
>> use netstat to see if that process is listening on the sshd port. Here's
>> what a
>> successful check looks like:
>>
>> ~ ps -as|grep sshd
>> 42834 ? Jan 16 /usr/sbin/sshd
>>
>> ~ ps -lp 42834
>> PID PPID PGID WINPID TTY UID STIME COMMAND
>> 42834 42832 42834 5972 ? 197612 Jan 16
>> /usr/sbin/sshd
>>
>> ~ netstat -ao|grep 5972
>> TCP 0.0.0.0:22 zotac:0 LISTENING
>> 5972
>> TCP [::]:22 zotac:0 LISTENING
>> 5972
>>
>> If the two output lines aren't there, I'd suspect a Windows firewall has
>> TCP port
>> 22 walled off. ("zotac" is my machine name; you'll see something
>> different there.)
>> HTH,
>>
>> ..mark
>>
>> --
>> 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
>>
>
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |