Link to home
Start Free TrialLog in
Avatar of Anthony Key
Anthony KeyFlag for United States of America

asked on

Trying to connect Cygwin on host server from remote server using Putty SSH client

I've setup Cygwin on an Windows 2008 R2 server and I been able to start the Cygwin service for my OEM host server. Now I am trying to test my Cygwin install by connecting from an SSH Putty client on a Windows 2008 R2 remote machine using port 22.. PuTTY works when using port 22, the key is downloaded and the login appears in the terminal box, I send the username to the host server and then the password and I get an access denied. I've tried changing the password of the SSH service on the host server and restarted the service and that didn't work. The Putty session appears to finding the host server but I'm able to connect to it. I've put in an SR with Oracle but they are suggesting that I create a Cygwin install on the remote client machine. But I should be able to test my host install by using a SSH Putty session. I've included my log from my last attempt. Any Ideas to help solve this would be helpful. Also don't know if firewall is any issue this is my first time installing this so it would be helpful to know if it is before I ask my SysAdms to open one up.

Avatar of sweetfa2
Flag of Australia image

You don't have a firewall problem.  If you did, you wouldn't be getting the communication you are getting.

As you know, you are getting a user authorisation problem.  As the user authorisation is failing then you need to look at your server, and not at putty as the cause of the problem.

I would check how you have configured cygwin to authenticate users.  Secondly I would verify that the ssh mechanism being used for user authentication matches what you have set up on your server.

The server logs would be of more use than the putty logs, as the problem is on the server.
Avatar of Anthony Key


Hi sweetfa2,

Thanks for the response. Can you tell me where I might find this log on the Windows 2008 R2 server?

Have a look in the event viewer although it probably isn't there.

It has been a while so memory is foggy.

Also look in you cygwin install directory C:\cygwin\var\log
Hi Sweetfa2,

Attached is a file that I got from 'C:\cygwin\var\log' called 'sshd'. It's an older file and I not sure if it refects what is happening currently. Also I've been looking in the 'Event Viewer' and have gone through quite a few logs but can't seem to find much of anything related to cygwin see below.

'- System

  - Provider

   [ Name]  sshd
  - EventID 0

   [ Qualifiers]  0
   Level 4
   Task 0
   Keywords 0x80000000000000
  - TimeCreated

   [ SystemTime]  2012-07-02T14:41:20.000000000Z
   EventRecordID 16306
   Channel Application
  - Security

   [ UserID]  S-1-5-21-4138756018-1546103158-1358996498-24305

- EventData

   sshd: PID 668: Failed keyboard-interactive for invalid user DOE\\oraadmin from port 51031 ssh2 '
sshd: PID 668: Failed keyboard-interactive for invalid user DOE\\oraadmin from port 51031 ssh2 '

This indicates that your authentication is not working.

Connecting SSHD to domain controller

The link above will give you some idea on what you need to set up to allow your authentication to proceed.
Hi Sweetfa2,

I checked on few things with the install and I made some changes with the Cygwin sshd service now when do my SSH -l Oraadmin severname 'date' I get a request for password but when I submit it I still get a access denied but this time when I check my logs I see this message (see below):

'sshd: PID 2628: Failed password for Oraadmin from ::1 port 50669 ssh2'

Now I have a special character in my password for this user how do I see my password to insure that I'm doing this correct.

Avatar of Anthony Key
Anthony Key
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was able to figure it out after the reinstall.