From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id 34E26385840A for ; Sun, 13 Feb 2022 06:31:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 34E26385840A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-x22e.google.com with SMTP id x193so14290465oix.0 for ; Sat, 12 Feb 2022 22:31:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fcMw6stsdilVWlkt+nxC1UCcCetwlKh1OCZHluMQ3YE=; b=Y1HlspakxP5LyKQzCq+WDxIpMMS45lpcbHgGKoTiaGrElf5L1T1ojt8v9KeqXJe09U FITnBKH0Dbnp/MEHX+YPRyPC/Qqw9l2ZDl6TF9DET46QzJcDKZ0emnyuqdiUrFF2ZJ5E joXrjS4o0OlTcsVa6T3pCMdexhLWtC1tD1NAgtSNntXLHysfdp825b1xNCrfZojRmPhN eQY44uE+iHwx46JG/Fr/DUGwBAkTv1OEQS0YKqfvmavzICrjWJoDkZYJPfJ3D94VYT6+ XUBPDRFOQ6mN74n91H6Qo62Fu0/MrkLAUnpdyCW22w0/NErSuiMrhS/ICKPeK64ywI2w crrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fcMw6stsdilVWlkt+nxC1UCcCetwlKh1OCZHluMQ3YE=; b=vqJlcx4GNwUA8o/ASbfkbndEyoN54PGegBVqPrjICUikeIiKq1oP9abuoIMjglkNmq xSIdhKKRoJwVc4VGZPhen/iikuHSwbiPmE6XYsO6zK+w4DNLLqga/euhnyqRdMbRxnhM feBn1IjLZugjYtiaDFFIJ4bnUPzL7+7gtcVapGHgUNYa1qoT/DdXtqwJZA4KNJOLpclf iIwDoR4Qlyj9nthQv+FJFc/rZ4AI1/sdcRact2awe8ILALPXFCNLoadNoABp+q1Jsh6i yg1s9wq1cUmMPFEAELIaHE2k40y6jTeIgf/FWspj2Sh0y81g84BvK8fNUId8Jge37eoK sj+Q== X-Gm-Message-State: AOAM532fBS8gxKdouXrEPBMeTda1MCm2mwUg2KvXPMLb5xWP67SsNryF j2oFTU3wGSx1VUHmhhRBOo4lItU2DJdarylyqop2X2/OXYMI+A== X-Google-Smtp-Source: ABdhPJxL1pvmPqFxhryZlksYb4JCuzz2BlGfNH0jvPRqu5GSQ+OKNOQyQuHwRJH89Byl7DocXns7CyUggQ+/kIWLnQc= X-Received: by 2002:a05:6808:191a:: with SMTP id bf26mr3401378oib.111.1644733870442; Sat, 12 Feb 2022 22:31:10 -0800 (PST) MIME-Version: 1.0 References: <8207721e-0b0d-2314-6038-c430e1758e53@raelity.com> In-Reply-To: From: Russell VT Date: Sat, 12 Feb 2022 22:30:55 -0800 Message-ID: Subject: Re: sshd To: Mark Geisert Cc: cygwin@cygwin.com 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, HTML_MESSAGE, KAM_BADIPHTTP, NORMAL_HTTP_TO_IP, NUMERIC_HTTP_ADDR, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.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: , X-List-Received-Date: Sun, 13 Feb 2022 06:31:12 -0000 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 (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 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 > -- Russell M. Van Tassell