Modify Cygwin sshd to support login into user SYSTEM?
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Fri Dec 20 22:28:52 GMT 2024
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
More information about the Cygwin
mailing list