Putty closes by immediately after authentication, Cygwin-SSH on the server

0

1

I have installed OpenSSH with CYGWIN on Windows Server 2012 R2 server on Amazon EC - I wanted to create my SSH instead of creating instances in the admin dashboard.

My SFTP connection with the installed OpenSSH w/ CYGWIN works perfectly fine.

When I am trying to connect to the server using PUTTY via SSH w/o X11 Forwarding/PPK, Putty asks for my password and closes the terminal immediately after the successful connection.

In Mercurial/Tortoise HG when I use the same PPK via PAGEANT I get

couldn't load this key (unable to open file)

In Mercurial, after removing key from PAGEANT and run the code

hg clone "C:\exampleProjectPath" ssh://username@hostname//exampleProject

I am getting

abort: no suitable response from remote hg!

For some reasons I am not understand what changes should I make in CYGWIN or on my WINDOWS SERVER 2012 at Server end. HELP ME

Some similar Questions on StackExchange - I have followed them all; My question is a little bit different from them; I have find no solution yet

pubkey-authentication-with-ssh-server-running-on-cygwin-session-closes-immedia

Cygwin OpenSSH closes immediately after a connection

putty closing after successful login

yellowandred

Posted 2018-08-24T05:58:53.357

Reputation: 111

Your PuTTY and Mercurial/Tortoise HG problems seem to be completely unrelated. So please do not mix them into a single question. + Also consider using Official Microsoft build of OpenSSH. It should be easier to setup than Cygwin.

– Martin Prikryl – 2018-08-26T06:19:16.763

No answers