delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/20/17:35:33

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BKMZWmn1636085
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BKMZWmn1636085
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=oq7El3PM
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DC84385840E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1734734131;
bh=23meNuz2b/gKDSX5Xx8tlQBMfDzo/qAT6iN6LzoQ4Ok=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=oq7El3PMUP2AEFOEvUOHKSU+NTIQSXFW96jrAYXeE123tl7PtD36qkZQKG83+8tFG
ZxRzBtdOP7r/0k6yA45HmHISACXiwyRkI60kHcErMZmqYetlNKp0IqTm5M8DdVGOMg
KbgCevMHhzZXEMBJVQAHt4+g1GNqiDaJWZNAYV18=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8902F3858D3C
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8902F3858D3C
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734733735; cv=none;
b=Yq81EtqCna/f+j1YRXc4dzKgctgGLHzdq+oYDM2YirKxXjLBkcM+wdmW1oZOUFWbZoOXZ9IqvZO49k9ifrhsdoZkGDjsHIT64Xk1dr6HCYXE9ZwMlMfc914J0WJqzTUraZax+zJDunCwvxTfeyqYab7g65RA6TwfJldk8naH3mI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734733735; c=relaxed/simple;
bh=vmsZIgg5skfDELhKej0sEzaB2KkmBDvbuSJ9KQpNuyY=;
h=Message-ID:Date:MIME-Version:Subject:To:From:DKIM-Signature;
b=eXCinaOxqzp1Fs4+lsN8TgW1q0AZ9ZF2tGdWmU7ZzABakmu1IGtIKHlLxtTqtL+HyuVaEFu5lB/1/pQutAswveE+LrLEVXz2zzvfmu8UFwAWUpXB5meDU+ZlA99LqpupIa7vcH47IXU2G7IPUCXYQl3sME8/cVFi+9P7RnVUeGY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8902F3858D3C
Message-ID: <522646bd-50eb-4c88-bf23-a64a5d105beb@SystematicSW.ab.ca>
Date: Fri, 20 Dec 2024 15:28:52 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Modify Cygwin sshd to support login into user SYSTEM?
To: cygwin AT cygwin DOT com
References: <CALXu0Udzq_gd0z13F7m=+krefjbqbVF4wH6pOtoXyU7ufR=EWg AT mail DOT gmail DOT com>
<2ebca14a-ce63-49bc-927b-bed770c91fc3 AT oskog97 DOT com>
<CANH4o6O1gxcMj2-7ggn9HPHgM1Nms4D23m4Cw458cJ7JLypBcg AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CANH4o6O1gxcMj2-7ggn9HPHgM1Nms4D23m4Cw458cJ7JLypBcg@mail.gmail.com>
X-Rspamd-Server: rspamout06
X-Rspamd-Queue-Id: 68FC52E
X-Stat-Signature: a3dzsi9hiwa7ppn7trwh41rth6xkrh5h
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+1QSm28wO8mHSZdMBGM5Z4kOZgi76jeec=
X-HE-Tag: 1734733697-889395
X-HE-Meta: U2FsdGVkX1+cR2T4pwpIr0wV0hXi+VI42YC8U9NDQKVFtEWyWuk4M+ZZuZA+rIUV7XOYkngFGVRlPXkKGHK04UzydWjQCPfP0y/XBjorZhc3g/s0SQMnngHafTY+p3aj0MBGntiGgKkuxa0e/5MpGCMMMPyY/apWyUYpwByZ5RsjM0Q9bh+T/jbmLiuh3jbKDRDvxAPZXGEr4iGLOlIlbzTEiE70dZRTuUoN+dRHkAFYiAOa3Lz41IwLb+8HVo4rU9pvdEXmt1jcog2AfFpKyi4yHfJbDXRwdymIIu5pQ48hdwEcCzp5Rk16t5FBYVqfRTo2uFJBB3hsX0RfrOTHnS+iQGTtwo26
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
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 4BKMZWmn1636085

On 2024-12-20 07:36, Martin Wege via Cygwin wrote:
> On Fri, Dec 20, 2024 at 3:22 PM Oskar Skog via Cygwin wrote:
>> On 2024-12-20 14:01, Cedric Blancher via Cygwin wrote:
>>> Is it possible to modify Cygwin sshd to support logins into user SYSTEM?

>> No modifications needed.
>> Run ssh-host-config and answer "no" to strictmodes.
>> mkdir -p ~SYSTEM/.ssh
>> ssh-keygen
>> cp ~/.ssh/id_rsa.puv ~SYSTEM/.ssh/authorized_keys
>> You can now log in as SYSTEM and correct the permissions of the SYSTEM's
>> home directory, .ssh, and the files in .ssh.
>> Once the permissions are sane you can run ssh-host-config again.

> I tried that for Windows sshd, but only got a
> fatal: ga_init, unable to resolve user system
> in the logs.
> How can I do the same for Windows sshd too?

Do a security lookup for user SYSTEM to get host\user required on your system.

Read the Windows SSHD instructions to find out where settings are stored - maybe 
in the registry for services - and what parameters and values are valid?

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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

- Raw text -


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