delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/21/22:50:04

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-transfer-encoding
:content-type:message-id:date:from:reply-to:to:subject
:references:in-reply-to; q=dns; s=default; b=FVNjHG4UK0F6h7HRpGv
Gl6zYZ5ZRNkV3omcsSCXhZ/HxKu+QAWcPrIuUckPurGhGu+G9nvYO5mShq595JE0
GecOIpQ7oPn1UBf1Q8KTE9AePGC+V5bqZ1HSNcIi3f9fj8SDDXn6mlLu3x2ouZtq
lpu/vsQ+Ejg5v1IrWbG8LyGo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-transfer-encoding
:content-type:message-id:date:from:reply-to:to:subject
:references:in-reply-to; s=default; bh=0MP3aZ4iLy5aXdLLZ5OWr5nb/
Ho=; b=RkxVHbzTla26lYkCc/Z9p0dNY2uig33WnU+1WkCwgAogt/2lDcILghEGU
30JKrbfeHLJSe3nXXh/LqOHX8YZjCTzes+/zNkaKWF0a4M+m9ZlZjVraZgO76dhO
jNF48OViCjLa3i+bG7uROk06bqhRyzCBi15nU3s30vHP2yZwUs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173017pub.verizon.net
MIME-version: 1.0
Message-id: <537D65BB.6070808@cygwin.com>
Date: Wed, 21 May 2014 22:49:31 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem logging into ssh
References: <96A00236-4DDD-4F39-917D-DC674ECE2642 AT gmail DOT com>
In-reply-to: <96A00236-4DDD-4F39-917D-DC674ECE2642@gmail.com>

On 05/21/2014 07:22 PM, Noah White wrote:
> I’ve installed and configured sshd to run as a service under a
> particular  account which is an Administrator. I can ssh in fine as that
> user. However, if I try to ssh as any other user I get the following error:

> Last login: Wed May 21 18:58:35 2014 from foo.home
> /bin/bash: Operation not permitted
> Connection to tango closed.
>
> I’ve found a few threads talking about this issue but none of the
> details/solutions were either pertinent or worked.
>
> Other details:
>
> Windows Server 2008 R2
> Cygwin 1.7.29(0.272/5/3) CYGWIN_NT-6.1-WOW64
> OpenSSH 6.6p1-1

While what you're describing could, perhaps, work, if you set the all
up in the right way, you would at most be able to get it to work with
password authentication.  If that's not working for you either, my
best recommendation is to read through the openssh README under
/usr/share/doc/Cygwin and follow the directions there for
configuring sshd.  Note that '/usr/bin/ssh-host-config' will create
a local user to run sshd under.  If you're trying to use public-key
authentication, this will only work for users on your local machine.
You will need to look into the configuration scripts that
'/usr/bin/ssh-host-config' runs to see how it creates this user
and create a like one for your domain, if that's your goal.  There is
more discussion of this in the email archives, though it is probably
several years back.  Otherwise, if a local pub-key user is enough
for your needs, these scripts should be enough to get you going or
provide you the details of what you need to get things working in
this way.  If you have further issues that you want to bring back
to the list, I recommend you read and follow the problem reporting
guidelines found at the link below.  You'll find what the list needs
from you as bootstrap information to help diagnose your particular
problem.

> Problem reports:       http://cygwin.com/problems.html



-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019