Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

8. Follow the prompts and enter the information as indicated below:

...

  • Query: Should StrictModes be used? (yes/no) yes

...

  • Query: Should privilege separation be used? (yes/no) yes

...

  • Query: new local account 'sshd'? (yes/no) yes

...

  • 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: []  <PRESS ENTER>

...

  • Query: Do you want to use a different name? (yes/no) no

...

  • Query: Create new privileged user account 'SYS\cyg_server' (Cygwin name: 'cyg_server')? (yes/no) yes
Tip

If you will be running build / deploy operations on this Endpoint as user other than cyg_server, you can say no to this answer and use existing account instead. Ideally, CYGWIN sshd service running as cyg_server should allow to connect as any other user if configured properly, but we have seen issues in this space due to various restrictions on Servers and Windows versions. If you decide to still continue with cyg_server, you can make the change later as well.

...

  • Query: Please enter the password: <ENTER PASSWORD>

...

  • Query: Reenter: <ENTER PASSWORD>

...

  • Info: Host configuration finished. Have fun!

9. Start the Cygwin SSH service from the services console (Computer Management>Services)

...

  • If you installed CYGWIN sshd as cyg_server user, it should be able to allow Endpoint connection as any user on the server, but that may not work always. In this situation you can try these options.
    1. Make sure that cyg_server account is added to Replace a process level token policy using gpedit.msc. Reference - https://technet.microsoft.com/en-us/library/dn221975(v=ws.11).aspx, https://technet.microsoft.com/en-us/library/cc957225.aspx
    2. Another option is to run CYGWIN sshd as user that you want to connect as from FlexDeploy Endpoint. Here are the steps to make that change.
      1. Make sure the account you want to connect as is Administrator account. See my example of flexuser that I used instead of cyg_server


      2. Stop CYGWIN sshd service. 
      3. Edit CYGWIN sshd service and make it use user that you want to connect as from FlexDeploy Endpoint. See example below.


      4. Click OK.
      5. Run Cygwin terminal as Administrator.
      6. Run ssh-host-config option and follow prompts.


      7. Now start CYGWIN sshd service.

...