Cygwin 3.1.7: ssh-keygen hanging (and as part of ssh-host-config)

2020-12-13 Thread Forum User

Hi,

I have been using Cygwin for 15+ years, and have always used it to ssh 
onto remote machines. About a couple of months ago, ssh/ sftp/ 
ssh-keygen started to hang - and am no longer able to do this. This all 
does look to conincide with the Windows 10 Build 1803 release.


I have had to move onto Putty/ MobaXterm - but this will NEVER replace 
being able to do this via mntty/ Cygwin.


After some analysis, l thought this was due to a conflict with Windows 
OpenSSH (installed after build 1803), so l uninstalled Cygwin completed, 
removed Windows OpenSSH Optional Feature and all Windows Rollback/ 
Packages that included ssh-keygen.exe.


I have performed the Cygwin Uninstall/ Reinstall 3 times, and 
reinstalled using various suggestions from the Web, e.g. renaming the 
ssh service to be cygsshd.


For the Cygwin Uninstall - l did the following:

* Ran setup-x86_64.exe to uninstall all executables
* Removed all registry entries for Cygwin
 * HKEY_CURRENT_USER\Software\Cygwin
 * HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
* Removed the cygssh (and previous sshd)
 * LOCAL_MACHINE\SYSTEM\ControlSet001\services\sshd (/ cygssh)
 * Checking services.msc to ensure that the service had 
disappeared

* Removed the C:\cygwin64 directory

For the next installs, l constantly renamed the home directory - and am 
currently on C:\CYGWIN (as an installation directory).


Whenever, l use ssh/ ssh-keygen Windows Task Manager shows the process 
taking up 30% CPU and 2.1Mb Memory - but they never complete.


$ ssh-user-config
*** Query: Shall I create a SSH2 RSA identity file for you? (yes/no) yes
*** Info: Generating /home/Sukhbir/.ssh/id_rsa

<< run as an Administrator >>

$ ssh-host-config

*** Info: Generating missing SSH host keys

Both just get stuck. I feel that if l can get this fixed, then this may 
fix being able to use Cygwin to ssh/ sftp to remote machines again.


The cygcheck.out is after my last reinstall - where l only chose a) zip 
b) unzip c) openssh d) openssl - and then the base package. I use Cygwin 
across other accounts on the Windows box, and have left the 
nsswitch.conf to leave the home directory inside the Cygwin installation 
directory. Previously, this was inside User directory of the 
Administrator Account (Sukhbir). This is a local Account.


Can anybody see what the issue is?  . . . l have spent all day doing the 
above . . .and have run out of ideas and web links :)


Regards,

Sukhster.
Cygwin Configuration Diagnostics
Current System Time: Sun Dec 13 17:36:30 2020

Windows 10 Home Ver 10.0 Build 18363 

Path:   C:\CYGWIN\usr\local\bin
C:\CYGWIN\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0
C:\Program Files (x86)\QuickTime\QTSystem
C:\Program Files\PuTTY
C:\Users\Sukhbir\AppData\Local\Microsoft\WindowsApps
C:\Users\Sukhbir\AppData\Local\Programs\Fiddler

Output from C:\CYGWIN\bin\id.exe
UID: 197609(Sukhbir)   GID: 197121(None)
197121(None)   545(Users)
4(INTERACTIVE) 66049(CONSOLE LOGON)
11(Authenticated Users)15(This Organization)
113(Local account) 4095(CurrentSession)
66048(LOCAL)   262154(NTLM Authentication)
401408(Medium Mandatory Level)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'Sukhbir'
PWD = '/home/Sukhbir'
HOME = '/home/Sukhbir'

USERDOMAIN = 'LENOVO-Y500-ARV'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '22'
PSModulePath = 'C:\Program 
Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
TZ = 'Europe/London'
HOSTNAME = 'LENOVO-Y500-ARVIND'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/cygdrive/c/Users/Sukhbir/Desktop'
USERNAME = 'Sukhbir'
NDI_RUNTIME_DIR_V4 = 'C:\Program Files\NewTek\NDI 4 Runtime\v4'
NDI_RUNTIME_DIR_V3 = 'C:\Program Files\NewTek\NDI 4 Runtime\v4'
NDI_RUNTIME_DIR_V2 = 'C:\Program Files\NewTek\NDI 4 Runtime\v4'
LOGONSERVER = '\\LENOVO-Y500-ARV'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\Sukhbir\AppData\Local'
COMPUTERNAME = 'LENOVO-Y500-ARV'
FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer'
!:: = '::\'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\Sukhbir'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = 'LENOVO-Y500-ARV'
PROCESSOR_IDENTIFIER = 'AMD64 Family 22 Model 48 Stepping 1, AuthenticAMD'
TMP = '/tmp'
LC_CTYPE = 'en_GB.UTF-8'
TERM_PROGRAM = 'mintty'
TERM_PROGRAM_VERSION = '3.4.3'
OneDrive = 'C:\Users\Sukhbir\OneDrive'
PROCESSOR_REVISION = '3001'
FPS_BROWSER_USER_PROFILE_STRING = 'Default'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '4'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
APPDATA = 'C:\Users\Sukhbir\AppData\Roaming'
SH

Re: Cygwin 3.1.7: ssh-keygen hanging (and as part of ssh-host-config)

2020-12-16 Thread Forum User

Hi,

Is anybody able to help with this?
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple