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-16 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



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

2016-03-15 Thread Kevin Layer
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:

@freon[git:master]$ ssh -vv4 thunder 
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
...
debug1: Next authentication method: publickey
debug1: Offering public key: /net/freon/home/layer/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug3: Wrote 372 bytes for a total of 1785
Connection closed by 192.132.95.185
@freon[git:master]$ 


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.

Ideas?  Thanks.

Kevin

 

Cygwin Configuration Diagnostics
Current System Time: Tue Mar 15 23:30:19 2016

Windows 2012 R2 Server Standard Ver 6.3 Build 9600 

Running under WOW64 on AMD64

Running in Terminal Service session

Path:   .
C:\cygwin\home\layer\bink
C:\cygwin\home\layer\bin
C:\cygwin\fi\scm\bin
C:\cygwin\usr\local\bin
C:\cygwin\usr\local
C:\cygwin\usr\sbin
C:\cygwin\bin
C:\cygwin\bin
C:\Windows\System32
C:\Windows

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)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'layer'
PWD = '/var/log'
HOME = '/home/layer'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: C:\cygwin
  User:   Key: c5e39b7a9d22bafb Path: C:\cygwin

c:  hd  NTFS953516Mb   4% CP CS UN PA FC 
z:  net NTFS 45418Mb  36% CP CS UN PApc

C:\cygwin/  system  binary,auto
C:\cygwin\bin/usr/bin   system  binary,auto
C:\cygwin\lib/usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  userbinary,posix=0,auto

Found: C:\cygwin\bin\awk
Found: C:\cygwin\bin\awk
 -> C:\cygwin\bin\gawk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\cpp.exe
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\find.exe
Found: C:\Windows\System32\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\home\layer\bin\ssh
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\test.exe
Found: C:\cygwin\bin\vi.exe
Found: C:\cygwin\bin\vi.exe
Not Found: vim

   38k 2013/07/23 C:\cygwin\bin\cygargp-0.dll
   87k 2016/02/26 C:\cygwin\bin\cygatomic-1.dll
   14k 2012/05/04 C:\cygwin\bin\cygattr-1.dll
  203k 2015/03/23 C:\cygwin\bin\cygblkid-1.dll
   62k 2011/05/21 C:\cygwin\bin\cygbz2-1.dll
   10k 2015/02/20 C:\cygwin\bin\cygcharset-1.dll
  125k 2013/05/09 C:\cygwin\bin\cygcloog-isl-4.dll
   13k 2015/03/19 C:\cygwin\bin\cygcom_err-2.dll
7k 2012/05/07 C:\cygwin\bin\cygcrypt-0.dll
 2005k 2016/03/08 C:\cygwin\bin\cygcrypto-1.0.0.dll
  485k 2016/02/08 C:\cygwin\bin\cygcurl-4.dll
 1284k 2011/11/10 C:\cygwin\bin\cygdb-4.8.dll
  105k 2011/11/10 C:\cygwin\bin\cygdb_cxx-4.8.dll
  159k 2013/10/20 C:\cygwin\bin\cygedit-0.dll
  153k 2013/07/31 C:\cygwin\bin\cygexpat-1.dll
   27k 2015/01/02 C:\cygwin\bin\cygffi-6.dll
  250k 2016/03/10 C:\cygwin\bin\cygfontconfig-1.dll
   60k 2016/03/06