BE-TEA-Agent on Windows - Configure Cygwin for a local user account when machine connected to a domain

BE-TEA-Agent on Windows - Configure Cygwin for a local user account when machine connected to a domain

book

Article ID: KB0073064

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x/6.x

Description

On Windows installations it is required to install and configure Cygwin to be able to deploy a BE application with the BE-TEA-Agent.

See article below for instructions to setup SSH using Cygwin on windows:

https://support.tibco.com/s/article/How-to-configure-ssh-cygwin-on-a-Windows-system-required-for-TIBCO-BusinessEvents-BE-TEA-server-deployment

In some cases the ssh connection for a local user fails when the Windows client machine configured to connect to a domain server.
The connection test in a Cygwin console does not work.

Command:
ssh -l <userID> <machine>

e.g.,
$ ssh -l Admin nbtest
admin@nbtest's password:
Permission denied, please try again.

Issue/Introduction

Windows Cygwin ssh connection for a local user failed with error (permission denied)

Environment

Windows 10

Resolution

By default, the "passwd" file created by Cygwin when we sync the local users with command "mkpasswd --local > /etc/passwd" includes the machine name in front of the userID. With that setting the authentication tries to connect to the domain controller for the authentication.

It is required to modify the <cygwin-Install>/etc/passwd file and remove the "<machine name>+" for the local user account.

e.g.,
Edit "c:\cygwin64\etc\passwd" file and modify the record for the local user
From:
NBTEST+Admin:*:197610:197121:U-NBTEST\Admin,<id>:/home/Admin:/bin/bash
To:
Admin:*:197610:197121:U-NBTEST\Admin,<id>:/home/Admin:/bin/bash

Note:
It is not required to restart the Cygwin service after you have modified the passwd file.
To test the connection, execute command "ssh -l <userID> <machine>" in the Cygwin console.