endless loop with junction points

2024-04-05 Thread Matthias--- via Cygwin
I try to save ACLs during a ssh session to my windows client with an 
${priv_user} with following
access rights:
   editrights -a SeAssignPrimaryTokenPrivilege -u ${priv_user}
   editrights -a SeCreateTokenPrivilege -u ${priv_user}
   editrights -a SeTcbPrivilege -u ${priv_user}
   editrights -a SeDenyRemoteInteractiveLogonRight -u ${priv_user}
   editrights -a SeServiceLogonRight -u ${priv_user}

In the ssh terminal I run:
   icacls "C:\Users\*" /save C:\obsAttrib\ACLinfo /T /C /L /Q

Unfortunately it doesn't work because icacls follows junctions points in an 
endless loop. e.g.:
   C:\Users\All Users\Application Data\Application Data\Application 
Data\Application
   Data\Application Data\Application Data\Application Data\Application 
Data\Application
   Data\Application Data\Application 
Data\Adobe\ARM\Reader_15.010.20060\meyer\ReaderDCManifest.msi:
   The system cannot find the path specified


If I run the same command from an CMD Terminal (as administrator) it work. 
icacls don't follow the
junctions. icacls report "Access is denied" for all junction points.

In opposite - if I run ls -R "/cygdrive/C/Users/Application Data" it also don't 
follow the junction
point.

Any hint how to execute icacls?

Thanks in advance
Matthias


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


ntfs-3g/ntfssecaudit build failed with fatal error: linux/fd.h: No such file or directory

2024-03-24 Thread Matthias--- via Cygwin
Hello,


I downloaded ntfs-3g_ntfsprogs-2022.10.3.tgz from tuxera, extract it and run, 
in my cygwin 3.5
environment:
   ./configure
   make ntfsprogs


I got a "fatal error: linux/fd.h: No such file or directory".
All ntfsprogs are build in ~/ntfsprogs but not ntfsrecover, ntfssecaudit and 
ntfsusermap.

So do you have any hint where I can find this "linux/fd.h" ?

Thanks in advance
Matthias


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


Howto to backup and restore windows ACL?

2024-02-28 Thread Matthias--- via Cygwin
Hello,

Is it possible to save and restore the windows acl?

My issue is that I can backup my files with rsync to my Linux Server.
But if I restore it the ownership and access rights are changed. Unfortunately 
I'm still on backuppc
3.3 and can't ust rsync with --acl and --xattr.

If I could extract the acls to a file, as "ntfssecaudit -b C:" would do and 
restore them later as
"ntfssecaudit -s C:" would do would be great.

Br
Matthias


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


Re: where is parted?

2024-01-11 Thread Matthias--- via Cygwin
fdisk reports the same partition type as sfdisk. It report "Microsoft basic 
data" for NTFS as well
as for FAT32 partitions.

Am Donnerstag, dem 11.01.2024 um 11:56 +0100 schrieb Christian Franke via 
Cygwin:
> Matthias--- via Cygwin wrote:
> > I'm using sfdisk for analysing partitions on msdos partition tables. 
> > Unfortunately it don't
> > support
> > GPT tables.
> > Is there another tool, like parted, what can be used?
>
> /sbin/fdisk from package util-linux-2.33.1-2 supports GPT.
>
> --
> Regards,
> Christian
>
>



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


where is parted?

2024-01-11 Thread Matthias--- via Cygwin
Dear all,

I'm using sfdisk for analysing partitions on msdos partition tables. 
Unfortunately it don't support
GPT tables.
Is there another tool, like parted, what can be used?

Thanks in advance
Matthias



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


Re: [EXTERNAL] mkdir create directory with permissions in wrong order

2023-12-23 Thread Matthias--- via Cygwin
Thanks a lot,

How can I set the permissions as promised?

Thanks
Matthias

Am Freitag, dem 22.12.2023 um 22:11 + schrieb Lavrentiev, Anton 
(NIH/NLM/NCBI) [C]:
> > Thanks for any hint
>
> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files
>
> HTH,
>
> Anton Lavrentiev
> Contractor NIH/NLM/NCBI
>



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


mkdir create directory with permissions in wrong order

2023-12-22 Thread Matthias--- via Cygwin
Hello

I use "mkdir.exe /test" for creating a directory.
If I open the properties in Windows it say "Permissions of /test are in wrong 
order"
If I use "cmd /c mkdir /test" all is fine.
I know that the mkdir.exe is the cygwin version and "cmd /c mkdir" use the 
windows version of mkdir.

In addition I'm wondering about the owner "NULL SID", togethert with the 
expected owners like me and
creator and so on.

Thanks for any hint
Matthias


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


Re: Cygwin 3.4.9 - how to install ssh-keygen - solved

2023-11-30 Thread Matthias--- via Cygwin


Hello,

After removing Citrix and install it again without "app protection", my 
segmentation fault has gone.
All is working now :)
It looks like this app protection is the reason for the segmentation fault.


Thank you for all the hints and your support
Matthias



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


Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-26 Thread Matthias--- via Cygwin
Am Sonntag, dem 26.11.2023 um 12:21 -0700 schrieb Brian Inglis via Cygwin:
> On 2023-11-26 10:12, Matthias--- via Cygwin wrote:
> > Am Samstag, dem 25.11.2023 um 19:45 +0100 schrieb ASSI via Cygwin:
> > > Matthias--- via Cygwin writes:
> > > > Yes - That's the reason in my VM too:
> > > >     strace ssh-keygen -A
> > > >     --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 
> > > > 7ffcbc79
> > > >     --- Process 8280 thread 12528 created
> > > >     --- Process 8280 thread 15124 created
> > > >     --- Process 8280 thread 3324 created
> > > >     --- Process 8280, exception c005 at 
> > > >     --- Process 8280 thread 12528 exited with status 0x0
> > > >     --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 
> > > > 7ffcbb55
> > > >     --- Process 8280 thread 13908 exited with status 0xc005
> > > >     --- Process 8280 thread 3324 exited with status 0xc005
> > > >     --- Process 8280 exited with status 0xc005
> > > >     Segmentation fault
>
> > > I'm fairly certain that this is not Cygwin's ssh-keygen…
>
> > I believe it is Cygwin's ssh-keygen because it is loading cygwin dlls too:
> >     strace /usr/bin/ssh-keygen.exe -A
> >     --- Process 14116 created
> >     --- Process 14116 loaded C:\Windows\System32\ntdll.dll at 
> > 7ffcbff9
> >     --- Process 14116 loaded C:\Windows\System32\kernel32.dll at 
> > 7ffcbe61
> >     --- Process 14116 loaded C:\Windows\System32\KernelBase.dll at 
> > 7ffcbd71
> >     --- Process 14116 loaded C:\Windows\System32\apphelp.dll at 
> > 7ffcbaea
> >     --- Process 14116 loaded C:\cygwin64\bin\cygcrypto-3.dll at 
> > 0003ff8c
> >     --- Process 14116 loaded C:\cygwin64\bin\cygwin1.dll at 7ffc74c9
> >     --- Process 14116 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 
> > 0003ff79
> >     --- Process 14116 loaded C:\cygwin64\bin\cygz.dll at 0003feb5
> >     1   1 [main] ssh-keygen (14116) 
> > **
> >   279 280 [main] ssh-keygen (14116) Program name: 
> > C:\cygwin64\bin\ssh-keygen.exe
> > (windows pid
> >     14116)
> >   190 470 [main] ssh-keygen (14116) OS version:   Windows NT-10.0
> >   125 595 [main] ssh-keygen (14116) 
> > **
> >     --- Process 14116 loaded C:\Windows\System32\advapi32.dll at 
> > 7ffcbfac
> >     :
> >     --- Process 14116 loaded C:\Windows\System32\ntmarta.dll at 
> > 7ffcbc79
> >     --- Process 14116 thread 15044 created
> >     --- Process 14116 thread 10544 created
> >     --- Process 14116 thread 13588 created
> >     --- Process 14116, exception c005 at 
> >     --- Process 14116 thread 15044 exited with status 0x0
> >     --- Process 14116 thread 10544 exited with status 0xc005
> >     --- Process 14116 thread 14316 exited with status 0xc005
> >     --- Process 14116 exited with status 0xc005
> >     Segmentation fault
> >
> > The Windows OpenSSH-Client is also installed in my VM:
> >     strace /cygdrive/C/Windows/System32/OpenSSH/ssh-keygen.exe -A
> >     --- Process 12532 created
> >     --- Process 12532 loaded C:\Windows\System32\ntdll.dll at 
> > 7ffcbff9
> >     --- Process 12532 loaded C:\Windows\System32\kernel32.dll at 
> > 7ffcbe61
> >     --- Process 12532 loaded C:\Windows\System32\KernelBase.dll at 
> > 7ffcbd71
> >     --- Process 12532 loaded C:\Windows\System32\apphelp.dll at 
> > 7ffcbaea
> >     :
> >     --- Process 12532 loaded C:\Windows\System32\winrnr.dll at 
> > 7ffc7715
> >     ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
> >     --- Process 12532 unloaded DLL at 7ffc7711
> >     :
> >     and all keys are created in C:\ProgramData\ssh
> >
> > So it looks like cygwin ssh-keygen.exe have a problem :(
> > BTW: similar Segmentation faults I have with "strace /usr/sbin/sshd.exe 
> > --help" as well as with
> > "strace /usr/bin/ssh.exe --help".
> > Both are loading cygwin dlls like cygcrypt-2.dll or cygiconv-2.dll as well 
> > as Windows dlls like
> > ntdll.dll or kernel32.dll.
> >
> > Any hints?
>
> That intercept does not run under strace on my Win 10 latest patches system.
> My strace shows D

Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-26 Thread Matthias--- via Cygwin
Am Samstag, dem 25.11.2023 um 19:45 +0100 schrieb ASSI via Cygwin:
> Matthias--- via Cygwin writes:
> > Yes - That's the reason in my VM too:
> >    strace ssh-keygen -A
> >    :
> >    --- Process 8280 loaded C:\Windows\System32\ntmarta.dll at 
> > 7ffcbc79
> >    --- Process 8280 thread 12528 created
> >    --- Process 8280 thread 15124 created
> >    --- Process 8280 thread 3324 created
> >    --- Process 8280, exception c005 at 
> >    --- Process 8280 thread 12528 exited with status 0x0
> >    --- Process 8280 loaded C:\Windows\System32\kernel.appcore.dll at 
> > 7ffcbb55
> >    --- Process 8280 thread 13908 exited with status 0xc005
> >    --- Process 8280 thread 3324 exited with status 0xc005
> >    --- Process 8280 exited with status 0xc005
> >    Segmentation fault
>
> I'm fairly certain that this is not Cygwin's ssh-keygen…
>
>
> Regards,
> Achim.
> --
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
>
> Factory and User Sound Singles for Waldorf rackAttack:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
>
I believe it is Cygwin's ssh-keygen because it is loading cygwin dlls too:
   strace /usr/bin/ssh-keygen.exe -A
   --- Process 14116 created
   --- Process 14116 loaded C:\Windows\System32\ntdll.dll at 7ffcbff9
   --- Process 14116 loaded C:\Windows\System32\kernel32.dll at 7ffcbe61
   --- Process 14116 loaded C:\Windows\System32\KernelBase.dll at 
7ffcbd71
   --- Process 14116 loaded C:\Windows\System32\apphelp.dll at 7ffcbaea
   --- Process 14116 loaded C:\cygwin64\bin\cygcrypto-3.dll at 0003ff8c
   --- Process 14116 loaded C:\cygwin64\bin\cygwin1.dll at 7ffc74c9
   --- Process 14116 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 
0003ff79
   --- Process 14116 loaded C:\cygwin64\bin\cygz.dll at 0003feb5
   1   1 [main] ssh-keygen (14116) 
**
 279 280 [main] ssh-keygen (14116) Program name: 
C:\cygwin64\bin\ssh-keygen.exe (windows pid
   14116)
 190 470 [main] ssh-keygen (14116) OS version:   Windows NT-10.0
 125 595 [main] ssh-keygen (14116) 
**
   --- Process 14116 loaded C:\Windows\System32\advapi32.dll at 7ffcbfac
   :
   --- Process 14116 loaded C:\Windows\System32\ntmarta.dll at 7ffcbc79
   --- Process 14116 thread 15044 created
   --- Process 14116 thread 10544 created
   --- Process 14116 thread 13588 created
   --- Process 14116, exception c005 at 
   --- Process 14116 thread 15044 exited with status 0x0
   --- Process 14116 thread 10544 exited with status 0xc005
   --- Process 14116 thread 14316 exited with status 0xc005
   --- Process 14116 exited with status 0xc005
   Segmentation fault

The Windows OpenSSH-Client is also installed in my VM:
   strace /cygdrive/C/Windows/System32/OpenSSH/ssh-keygen.exe -A
   --- Process 12532 created
   --- Process 12532 loaded C:\Windows\System32\ntdll.dll at 7ffcbff9
   --- Process 12532 loaded C:\Windows\System32\kernel32.dll at 7ffcbe61
   --- Process 12532 loaded C:\Windows\System32\KernelBase.dll at 
7ffcbd71
   --- Process 12532 loaded C:\Windows\System32\apphelp.dll at 7ffcbaea
   :
   --- Process 12532 loaded C:\Windows\System32\winrnr.dll at 7ffc7715
   ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
   --- Process 12532 unloaded DLL at 7ffc7711
   :
   and all keys are created in C:\ProgramData\ssh

So it looks like cygwin ssh-keygen.exe have a problem :(
BTW: similar Segmentation faults I have with "strace /usr/sbin/sshd.exe --help" 
as well as with
"strace /usr/bin/ssh.exe --help".
Both are loading cygwin dlls like cygcrypt-2.dll or cygiconv-2.dll as well as 
Windows dlls like
ntdll.dll or kernel32.dll.

Any hints?

Thanks in advance
Matthias


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


Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-25 Thread Matthias--- via Cygwin
> > -Original Message-
> > From: Cygwin 
> > On Behalf Of Matthias--- via Cygwin
> > Sent: Friday, November 24, 2023 5:32 AM
> > To: cygwin@cygwin.com
> > Subject: EXTERNAL SENDER: Re: Cygwin 3.4.9 - how to install ssh-keygen
> >
> > Am Montag, dem 20.11.2023 um 17:54 +0100 schrieb mailto:matth...@gmx.li:
> > > Dear all,
> > >
> > > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > > After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-
> > Terminal as Administrator and
> > > run ssh-host-config.
> > >  * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > >  * Answered "no" to use StrictMode
> > >  * and "yes" to install sshd as a service
> > >  * I just press  for the question for "Value of CYGWIN for the 
> > > daemon".
> > > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no 
> > > hostkeys available".
> > >
> > > Unfortunately  I can't find ssh-keygen in the installable packages.
> > > Howto install ssh-keygen or how to create hostkeys?
> > >
> > > Thanks in advance
> > > Matthias
> > >
> > Hello,
> >
> > I installed cygwin 3.4.9-1 with all defaults plus openssh 9.5p 1-1 plus 
> > rsync
> > 3.2.7-1 in my virtualbox running on Windows 10 again.
> >
> > In /var/log/setup.log I found "can't run /etc/postinstall/openssl.sh: No 
> > such file"
> > Anyhow, I opened the Cygwin64-Terminal as Administrator and run 
> > ssh-host-config
> > but no host-keys has been created:
> >    $ ssh-host-config
> >
> >    *** Info: Generating missing SSH host keys
> >    *** Info: Creating default /etc/ssh_config file
> >    *** Info: Creating default /etc/sshd_config file
> >
> >    *** Info: StrictModes is set to 'yes' by default.
> >    *** Info: This is the recommended setting, but it requires that the POSIX
> >    *** Info: permissions of the user's home directory, the user's .ssh
> >    *** Info: directory, and the user's ssh key files are tight so that
> >    *** Info: only the user has write permissions.
> >    *** Info: On the other hand, StrictModes don't work well with default
> >    *** Info: Windows permissions of a home directory mounted with the
> >    *** Info: 'noacl' option, and they don't work at all if the home
> >    *** Info: directory is on a FAT or FAT32 partition.
> >    *** Query: Should StrictModes be used? (yes/no) no
> >    *** Info: Updating /etc/sshd_config file
> >
> >    *** Query: Do you want to install sshd as a service?
> >    *** Query: (Say "no" if it is already installed as a service) (yes/no) 
> > yes
> >    *** Query: Enter the value of CYGWIN for the daemon: []
> >
> >    *** Info: The sshd service has been installed under the LocalSystem
> >    *** Info: account (also known as SYSTEM). To start the service now, call
> >    *** Info: `net start cygsshd' or `cygrunsrv -S cygsshd'.  Otherwise, it
> >    *** Info: will start automatically after the next reboot.
> >
> >    *** Info: Host configuration finished. Have fun!
> >
> >    $ ls -alh /etc/ssh*
> >    -rw-r--r-- 1 SYSTEM Administratoren 1.5K Nov 24 12:02 /etc/ssh_config
> >    -rw-r--r-- 1 SYSTEM Administratoren 3.1K Nov 24 12:02 /etc/sshd_config
> >
> > Also running ssh-user-config don't create any keys:
> >    $ ssh-user-config
> >    *** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
> >    *** Info: Generating /home/meyer/.ssh/id_rsa
> >    *** Query: Do you want to use this identity to login to this machine?
> > (yes/no) yes
> >    *** Info: Adding to /home/meyer/.ssh/authorized_keys
> >    cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
> >    *** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) no
> >    *** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) no
> >    *** Query: Shall I create a (deprecated) SSH1 RSA identity file for you?
> > (yes/no) no
> >
> >    *** Info: Configuration finished. Have fun!
> >
> >    $ ls -alh $HOME/.ssh
> >    total 4.0K
> >    drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .
> >    drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 ..
> >    -rw-r--r-- 1 meyer Kein 0 Nov 24 12:11 authorized_keys
> >
> > An indication of an installation/configuration error of ssh-keygen is that 
> > also
> >    /usr/bin/ssh-keygen -vvf /etc/ssh_host_rsa_key -N '' -t rsa
> &g

Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-24 Thread Matthias--- via Cygwin
Am Montag, dem 20.11.2023 um 17:54 +0100 schrieb matth...@gmx.li:
> Dear all,
>
> I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal 
> as Administrator and
> run ssh-host-config.
>  * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
>  * Answered "no" to use StrictMode
>  * and "yes" to install sshd as a service
>  * I just press  for the question for "Value of CYGWIN for the daemon".
> cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys 
> available".
>
> Unfortunately  I can't find ssh-keygen in the installable packages.
> Howto install ssh-keygen or how to create hostkeys?
>
> Thanks in advance
> Matthias
>
Hello,

I installed cygwin 3.4.9-1 with all defaults plus openssh 9.5p 1-1 plus rsync 
3.2.7-1 in my
virtualbox running on Windows 10 again.

In /var/log/setup.log I found "can't run /etc/postinstall/openssl.sh: No such 
file"
Anyhow, I opened the Cygwin64-Terminal as Administrator and run ssh-host-config 
but no host-keys has
been created:
   $ ssh-host-config

   *** Info: Generating missing SSH host keys
   *** Info: Creating default /etc/ssh_config file
   *** Info: Creating default /etc/sshd_config file

   *** Info: StrictModes is set to 'yes' by default.
   *** Info: This is the recommended setting, but it requires that the POSIX
   *** Info: permissions of the user's home directory, the user's .ssh
   *** Info: directory, and the user's ssh key files are tight so that
   *** Info: only the user has write permissions.
   *** Info: On the other hand, StrictModes don't work well with default
   *** Info: Windows permissions of a home directory mounted with the
   *** Info: 'noacl' option, and they don't work at all if the home
   *** Info: directory is on a FAT or FAT32 partition.
   *** Query: Should StrictModes be used? (yes/no) no
   *** Info: Updating /etc/sshd_config file

   *** Query: Do you want to install sshd as a service?
   *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
   *** Query: Enter the value of CYGWIN for the daemon: []

   *** Info: The sshd service has been installed under the LocalSystem
   *** Info: account (also known as SYSTEM). To start the service now, call
   *** Info: `net start cygsshd' or `cygrunsrv -S cygsshd'.  Otherwise, it
   *** Info: will start automatically after the next reboot.

   *** Info: Host configuration finished. Have fun!

   $ ls -alh /etc/ssh*
   -rw-r--r-- 1 SYSTEM Administratoren 1.5K Nov 24 12:02 /etc/ssh_config
   -rw-r--r-- 1 SYSTEM Administratoren 3.1K Nov 24 12:02 /etc/sshd_config

Also running ssh-user-config don't create any keys:
   $ ssh-user-config
   *** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
   *** Info: Generating /home/meyer/.ssh/id_rsa
   *** Query: Do you want to use this identity to login to this machine? 
(yes/no) yes
   *** Info: Adding to /home/meyer/.ssh/authorized_keys
   cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
   *** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) no
   *** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) no
   *** Query: Shall I create a (deprecated) SSH1 RSA identity file for you? 
(yes/no) no

   *** Info: Configuration finished. Have fun!

   $ ls -alh $HOME/.ssh
   total 4.0K
   drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 .
   drwxr-xr-x 1 meyer Kein 0 Nov 24 12:11 ..
   -rw-r--r-- 1 meyer Kein 0 Nov 24 12:11 authorized_keys

An indication of an installation/configuration error of ssh-keygen is that also
   /usr/bin/ssh-keygen -vvf /etc/ssh_host_rsa_key -N '' -t rsa
don't produce any output. Also if it has return value 0. BTW: Windows OpenSSH 
isn't installed on my
machine.

René Berber wrote that my files have the wrong permissions. But for shure, 
/home and /home/meyer has
been created during cygwin installation and /home/meyer/.ssh by ssh-user-config.

Which permissions the directories and files should have?
What could the reason be that ssh-keygen don't create any key? Looks like it 
wouldn't try it?

Thanks in advance
Matthias


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


Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-23 Thread Matthias--- via Cygwin
Am Mittwoch, dem 22.11.2023 um 08:23 -0700 schrieb Brian Inglis:
> On 2023-11-22 00:40, Matthias--- via Cygwin wrote:
> > Am Dienstag, dem 21.11.2023 um 19:23 -0700 schrieb Brian Inglis:
> > > On 2023-11-20 09:54, Matthias--- via Cygwin wrote:
> > > > Dear all,
> > > >
> > > > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > > > After installing defaults plus openssh 9.5p 1-1, I open the 
> > > > Cygwin64-Terminal as
> > > > Administrator
> > > > and
> > > > run ssh-host-config.
> > > >    * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> > > >    * Answered "no" to use StrictMode
> > > >    * and "yes" to install sshd as a service
> > > >    * I just press  for the question for "Value of CYGWIN for the 
> > > > daemon".
> > > > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no 
> > > > hostkeys available".
> > > >
> > > > Unfortunately  I can't find ssh-keygen in the installable packages.
> > > > Howto install ssh-keygen or how to create hostkeys?
> > >
> > > Delete any manually created directories as permissions are likely wrong 
> > > then run
> > >
> > >  $ /usr/bin/ssh-user-config
> > >
> > Thank you,
> > $HOME/.ssh has been created with id_dsa and id_dsa.pub
> > rsa and ecdsa hasn't been created also if it said "*** Info: Generating 
> > /home/meyer/.ssh/id_..."
>
> Now you can securely use ssh-keygen -A to create all default host key types or
> ssh-keygen -t TYPE -a ROUNDS -b BITS -c for keys of any types and strengths 
> you
> wish.
>
Hello

It isn't working for me :)
I run ssh-user-config. It asked me which keys I like to create and if I like to 
add them to
authorized_keys.
$ /usr/bin/ssh-user-config
*** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_rsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) 
yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_rsa.pub: No such file or directory
*** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_dsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) 
yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_dsa.pub: No such file or directory
*** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) yes
*** Info: Generating /home/meyer/.ssh/id_ecdsa
*** Query: Do you want to use this identity to login to this machine? (yes/no) 
yes
*** Info: Adding to /home/meyer/.ssh/authorized_keys
cat: /home/meyer/.ssh/id_ecdsa.pub: No such file or directory
*** Query: Shall I create a (deprecated) SSH1 RSA identity file for you? 
(yes/no) no

*** Info: Configuration finished. Have fun!

It create $HOME/.ssh with an empty authorized_keys and no keys:
$ ls -alh $HOME/.ssh
total 4.0K
drwxr-xr-x 1 meyer Kein 0 Nov 23 09:06 .
drwxr-xr-x 1 meyer Kein 0 Nov 23 09:06 ..
-rw-r--r-- 1 meyer Kein 0 Nov 23 09:06 authorized_keys


Thanks for any hint
Matthias


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


Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-21 Thread Matthias--- via Cygwin
Am Dienstag, dem 21.11.2023 um 19:23 -0700 schrieb Brian Inglis:
> On 2023-11-20 09:54, Matthias--- via Cygwin wrote:
> > Dear all,
> >
> > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > After installing defaults plus openssh 9.5p 1-1, I open the 
> > Cygwin64-Terminal as Administrator
> > and
> > run ssh-host-config.
> >   * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> >   * Answered "no" to use StrictMode
> >   * and "yes" to install sshd as a service
> >   * I just press  for the question for "Value of CYGWIN for the 
> > daemon".
> > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys 
> > available".
> >
> > Unfortunately  I can't find ssh-keygen in the installable packages.
> > Howto install ssh-keygen or how to create hostkeys?
>
> Delete any manually created directories as permissions are likely wrong then 
> run
>
> $ /usr/bin/ssh-user-config
>
Thank you,
$HOME/.ssh has been created with id_dsa and id_dsa.pub
rsa and ecdsa hasn't been created also if it said "*** Info: Generating 
/home/meyer/.ssh/id_..."

Br
Matthias


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


Re: Cygwin 3.4.9 - how to install ssh-keygen

2023-11-21 Thread Matthias--- via Cygwin
Thanks, I found it.

It is still not working. I'll ask for it in another thread with a better 
subject :)

Thanks a lot
Matthias


Am Montag, dem 20.11.2023 um 17:41 -0500 schrieb Lee:
> On Mon, Nov 20, 2023 at 11:54 AM Matthias wrote:
> >
> > Dear all,
> >
> > I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
> > After installing defaults plus openssh 9.5p 1-1, I open the 
> > Cygwin64-Terminal as Administrator
> > and
> > run ssh-host-config.
> >  * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
> >  * Answered "no" to use StrictMode
> >  * and "yes" to install sshd as a service
> >  * I just press  for the question for "Value of CYGWIN for the 
> > daemon".
> > cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys 
> > available".
> >
> > Unfortunately  I can't find ssh-keygen in the installable packages.
> > Howto install ssh-keygen or how to create hostkeys?
>
> The easy way to see if it's already installed
>   $ which ssh-keygen
>   /usr/bin/ssh-keygen
>
> If no, Cygwin is a bit of a pain when looking for a program that's
> included in another package.
>
> There's probably a better way, but I use the cygwin package search - eg:
>   https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ssh-keygen
> and then take a guess as the most likely candidate in the results list
> and click on that link to see if it's included in that package - eg
>  
> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fopenssh%2Fopenssh-9.5p1-1=ssh-keygen
>
>
> Regards
> Lee



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


Cygwin 3.4.9 - Error starting cygsshd service

2023-11-21 Thread Matthias--- via Cygwin
Hello,

I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal 
as Administrator and
run ssh-host-config.
Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
Answered "no" to use StrictMode
and "yes" to install sshd as a service
I just press  for the question for "Value of CYGWIN for the daemon".

cygrunsrv -S cygsshd will not start the sshd. "QueryServiceStatus:  Win32 error 
1062:"

I tried "ssh-keygen -A" - but no keys created.
I have no $HOME/.ssh or /etc/ssh and create them. Both owned by me with 
u=rwx,go=rw. I tried ssh-
keygen again but without success.
I also tried ssh-host-config again. It says "*** Info: Generating missing SSH 
host keys" but I still
have no keys in /etc/ssh or $HOME/.ssh

Thanks
Matthias


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


Cygwin 3.4.9 - how to install ssh-keygen

2023-11-20 Thread Matthias--- via Cygwin
Dear all,

I've installed cygwin 3.4.9-1 in my virtualbox running on Windows 10.
After installing defaults plus openssh 9.5p 1-1, I open the Cygwin64-Terminal 
as Administrator and
run ssh-host-config.
 * Answered "yes" to create the /etc/ssh_config and /etc/sshd_config
 * Answered "no" to use StrictMode
 * and "yes" to install sshd as a service
 * I just press  for the question for "Value of CYGWIN for the daemon".
cygrunsrv -S cygsshd will not start the sshd. The logfile say "no hostkeys 
available".

Unfortunately  I can't find ssh-keygen in the installable packages.
Howto install ssh-keygen or how to create hostkeys?

Thanks in advance
Matthias




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


most links on cygwin.com are broken

2021-07-29 Thread Roosz, Matthias via Cygwin
Hi,

most Cygwin webpage links cannot be navigated to, e.g. 'Gold Stars' points to 
https://cygwin.com/goldstars/, the working link (both in current Chrome and 
Firefox) for me is https://www.cygwin.com/goldstars/ 
Where ever my browser tells me 'Hmm. We're having trouble finding that site.' 
inserting  a www seems to do the trick...

Cheers

Matthias Roosz


*** E-Mail wurde verschlüsselt übertragen


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