Re: can't get sshd to new Windows 2012 R2 Server to work

2016-03-20 Thread Warren Young
On Mar 15, 2016, at 4:35 PM, Kevin Layer  wrote:
> 
> Cygwin Configuration Diagnostics

Next time, please *attach* this, don’t paste it inline.

(That’s not my idiosyncratic preference, it’s part of the instructions: 
https://cygwin.com/problems.html)

> Running in Terminal Service session

You say you disabled the firewall on the machine you’re working with, but have 
you disabled the firewall on the TS host, too?

Truncated SSH sessions feel like some sort of security thingy to me.

> Output from C:\cygwin\bin\id.exe
> UID: 1049579(layer) GID: 1049089(Domain Users)
> 1049089(Domain Users)   559(Performance Log Users)
> 545(Users)  14(REMOTE INTERACTIVE LOGON)
> 4(INTERACTIVE)  11(Authenticated Users)
> 15(This Organization)   4095(CurrentSession)
> 66048(LOCAL)1054502(domcon2 $ Acronis Remote 
> Users)
> 1055482(CERTSVC_DCOM_ACCESS)401408(Medium Mandatory Level)

I don’t see 544 in there, so this must not be an admin shell.  I believe you 
need to run ssh-host-config as admin for it to do its work correctly.  Without 
those privileges, it can’t set sshd up to run as admin but drop privileges to 
the logged-in user when accepting connections.
--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: can't get sshd to new Windows 2012 R2 Server to work

2016-03-19 Thread Kevin Layer
Achim Gratz wrote:

>> Kevin Layer writes:
>> > I've tried various ssh-host-config permutations, but I just ran
>> >
>> >   cygrunsrv.exe -R sshd
>> >
>> > and ran ssh-host-config with the defaults.  I started the sshd service
>> > and when I ssh to it:
>> […]
>> > If I give a command (e.g., env or pwd) I never get any output.
>> >
>> > This is a brand new server.  All that is installed is Cygwin (latest,
>> > just updated today), Windows Updates and Visual Studio 2015.  Nothing
>> > else, yet.
>> 
>> Just install a 64bit Cygwin over the installation you already have.
>> Seriously.

Completely removed 32-bit cygwin.  Installed 64-bit Cygwin.  Same
exact behavior.

Anyone else?  I need ssh into this box to work and I've previously
never had trouble with Cygwin sshd.  It's currently working fine on a
Server 2008 R2 box.

The firewall is off, I verified again.

Thanks.

Kevin

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: can't get sshd to new Windows 2012 R2 Server to work

2016-03-19 Thread Achim Gratz
Kevin Layer writes:
> Completely removed 32-bit cygwin.  Installed 64-bit Cygwin.  Same
> exact behavior.

You must install and run cygserver if you expect to do anything
non-local when doing a key-based login (and log in once with password
and store it via passwd -R).

> The firewall is off, I verified again.

The  firewall is not your problem if you've got as far as you say you
did.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: can't get sshd to new Windows 2012 R2 Server to work

2016-03-15 Thread Achim Gratz
Kevin Layer writes:
> I've tried various ssh-host-config permutations, but I just ran
>
>   cygrunsrv.exe -R sshd
>
> and ran ssh-host-config with the defaults.  I started the sshd service
> and when I ssh to it:
[…]
> If I give a command (e.g., env or pwd) I never get any output.
>
> This is a brand new server.  All that is installed is Cygwin (latest,
> just updated today), Windows Updates and Visual Studio 2015.  Nothing
> else, yet.

Just install a 64bit Cygwin over the installation you already have.
Seriously.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple