From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71240 invoked by alias); 29 Mar 2018 20:33:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 71199 invoked by uid 89); 29 Mar 2018 20:33:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=canada, Canada, calgary, Calgary X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Mar 2018 20:33:39 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with ESMTP id 1eEqfs518Lkoz1eErfv7Z3; Thu, 29 Mar 2018 14:33:37 -0600 X-Authority-Analysis: v=2.3 cv=OeS28CbY c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=mVINpUZbwB0pm_E8jKYA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: ssh login to cygwin bash? To: cygwin@cygwin.com References: <20180329142411.GZ12560@rus.uni-stuttgart.de> <20180329193529.GB396@rus.uni-stuttgart.de> From: Brian Inglis Message-ID: <7eb4911d-6108-d845-6748-7cfd7fcffa7c@SystematicSw.ab.ca> Date: Thu, 29 Mar 2018 21:19:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180329193529.GB396@rus.uni-stuttgart.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfCMX2B3W7dSvmN5sK+irq61ZRbvTJfD2h6pcwvS387HRjVFbAZc8ikylZEMGvhMexEiGGO+MXKY0/INv6Sehe4jVLOYmBG7izLF57xSV50Hl6HDQUF/Y FvL00YbjkpJi5KmynJaYrQKsKOya9YTB5bV5f/ZPk1w69jWOPcpHVEGrJJcqv+M1MytVJ2zy57YaeA== X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00455.txt.bz2 On 2018-03-29 13:35, Ulli Horlacher wrote: > On Thu 2018-03-29 (13:00), Erik Soderquist wrote: >> On Thu, Mar 29, 2018 at 10:24 AM, Ulli Horlacher wrote: >>> I have installed cygwin openssh and the sshd is running. >>> When I log in, I get a "DOS shell": >>> ~: uname -a >>> CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin >>> ~: ssh localhost >>> admin@localhost's password: >>> C:\users\admin> > I have just installed the openssh cygwin package (via setup). That's it. >>> But I want bash as login shell. How can I configure cygwin sshd for that? W10 Developer mode installs and enables minimal MS SSH server for Settings "Device discovery" mDNS service "SSDP Discovery", also "SSH Server Broker", and "SSH Server Proxy" services. Enable/disable them to affect MS W10 SSH server. In Developer mode you also have Optional Features you can add for OpenSSH Server and OpenSSH Client. To connect to Cygwin sshd, disable W10 SSH services as above, uninstall SSH Optional Features, and in Settings disable Device discovery to stop mDNS. Then log in under your user account admin and start Cygwin mintty/bash to set up your Cygwin environment for that user, and in an elevated mintty/bash session, run ssh-host-config script and answer the questions (normally take the defaults) to set up sshd as a Windows service running under the cygrunsrv daemon wrapper. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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