After Installing Cygwin and Configuring SSH

After installing Cygwin (as described in Installing Cygwin) and configuring SSH (as described in Configuring SSH), follow these steps:

  1. If the OMS host runs on a Microsoft Windows platform, perform the following on the OMS host:
    1. Right click My Computer, then select Properties. In the window that appears, select Advanced system settings, then select Environment Variables. In the System Variables section, create the CYGWIN variable, and specify its value as nodosfilewarning.

      Note:

      You do not need to restart the host after performing this step.

    2. Navigate to the Cygwin install directory (that is, C:\cygwin if you chose to install Cygwin in the default location), open the Cygwin.bat file in edit mode using any editor, then edit the following line:
      set CYGWIN=binmode ntsec nodosfilewarning

      For example, these are the contents of the Cygwin.bat file after editing the above line:

      @echo off
      
      C:
      chdir C:\cygwin\bin
      set CYGWIN=binmode ntsec nodosfilewarning
      bash --login -i
      
    3. From the Start menu, select Run. For Open, enter services.msc, then click OK. Search for the Cygwin SSHD service and stop it.
    4. Navigate to the Cygwin install directory (that is, C:\cygwin if you chose to install Cygwin in the default location), then run Cygwin.bat. Run the following command to start the SSHD service:
      $ /usr/sbin/sshd

      Note:

      Running this command may return an error mentioning that /var/empty must be owned by the root user. If you encounter this error, run the following from the Cygwin terminal:

      $ chown <windows_install_user>:<windows_install_group> /var/empty

      After running this command, retry the $ /usr/sbin/sshd command.

  2. Perform the tasks mentioned in Step 1 on all the Microsoft Windows target hosts (on which you want to install Management Agents using the Add Host Targets Wizard or EM CLI).