0
after installing cygwin, I want to configure the SSHD service, run C:\cygwin\Cygwin.bat, and executed the following command:
ssh-host-config
* Info: Generating missing SSH host keys ssh-keygen: generating new host keys: RSA DSA XXXXX XXXXXXX * 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) Query: Should StrictModes be used? (yes/no) yes Info: Note that creating a new user requires that the current account have Info: Administrator privileges. Should this script attempt to create a * Query: new local account 'sshd'? (yes/no) yes *** Info: Updating /etc/sshd_config file
* Info: Sshd service is already installed. Warning: Couldn't determine name of user running sshd service from account database! Warning: As a result, this script cannot make sure that the files used * Warning: by the sshd service belong to the user running the service.
* Warning: Host configuration exited with 1 errors or warnings! * Warning: Make sure that all problems reported are fixed, *** Warning: then re-run ssh-host-config.
Each time i tried running again, is not giving me option of creating the local user or option to use the same name, that is cyg_server, and to enter no
$ ssh-host-config
* Info: Generating missing SSH host keys Query: Overwrite existing /etc/ssh_config file? (yes/no) yes Info: Creating default /etc/ssh_config file * Query: Overwrite existing /etc/sshd_config file? (yes/no) yes *** 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) yes *** Info: Updating /etc/sshd_config file
* Info: Sshd service is already installed. Warning: Couldn't determine name of user running sshd service from account database! Warning: As a result, this script cannot make sure that the files used * Warning: by the sshd service belong to the user running the service.
* Warning: Host configuration exited with 1 errors or warnings! * Warning: Make sure that all problems reported are fixed, *** Warning: then re-run ssh-host-config.
how to resolve to enable me have a local user to use in configuring enterprise management agent on this window box.
Thanks in anticipation for your answers!
as a result no /etc/passwd was created after the installation – newman – 2017-08-29T10:53:18.973
/etc/passwd
is not needed anymore except if you want to rename the user or similar. Is it possible that your user has a space in the name ? What is the output of commandid
? – matzeri – 2017-08-29T16:01:27.993