Re: setting up sshd on windows 7
So i ran sshd by hand, which gave me an obnoxious error about /var/empty not being owned by root. turns out it just needs to be owned by the user running sshd. after i was able to run it by hand with -d, i saw an error that /bin/bash is not executable for my user. I was able to fix this by giving Everyone rwx access on my cygwin installation folder. what a pia. any idea why when running it as a service i saw no logs in the Event Viewer or in /var/log/sshd.log that indicated any of this? On Wed, Aug 21, 2013 at 1:52 PM, anatoly yakovenko aeyakove...@gmail.com wrote: I can't seem to login in with a password or with a key. /var/log/sshd.log doesn't show any errors and i dont see anything in the event viewer. i set the log level to VERBOSE in sshd_config, but nothing is shown in either. When i had incorrect permissions in /var/empty, i got errors in the event viewer and /var/log/sshd.log, so i am think logging is working, but i am not sure its reading /etc/sshd_config. I am pretty sure permissions on my home directory, .ssh and .ssh/authorized_keys are correct. One thing, my user is a domain user (not really savvy with windows login stuff), and I am pretty sure i added him to the local login permissions thing. any ideas? This is the output from my client $ ssh -v myhost OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012 debug1: Reading configuration data /Users/myuser/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 53: Applying options for * debug1: Connecting to myhost [10.52.54.182] port 22. debug1: Connection established. debug1: identity file /Users/myuser/.ssh/id_rsa type 1 debug1: identity file /Users/myuser/.ssh/id_rsa-cert type -1 debug1: identity file /Users/myuser/.ssh/id_dsa type -1 debug1: identity file /Users/myuser/.ssh/id_dsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2 debug1: match: OpenSSH_6.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.9 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-ctr hmac-md5 none debug1: kex: client-server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA 60:77:ad:bf:4c:dc:85:2d:11:1b:c1:a2:ac:4e:09:ea debug1: Host 'myhost' is known and matches the RSA host key. debug1: Found key in /Users/myuser/.ssh/known_hosts:8 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/myuser/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /Users/myuser/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password myuser@myhost's password: -- 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: setting up sshd on windows 7
I changed the LogLevel to DEBUG in /etc/sshd_config, and I was able to see helpful information in the event log after restarting the ssh service. Also, CopSSH, which uses Cygwin, sets some parameters for stderr and stdout that I forget, in the ssh service key in the registry. I've since deleted the VM and given up on Cygwin's SSH, but it's pretty simple to install / uninstall CopSSH and try to copy those registry settings. On Fri, Aug 23, 2013 at 11:42 AM, Anatoly Yakovenko aeyakove...@gmail.com wrote: So i ran sshd by hand, which gave me an obnoxious error about /var/empty not being owned by root. turns out it just needs to be owned by the user running sshd. after i was able to run it by hand with -d, i saw an error that /bin/bash is not executable for my user. I was able to fix this by giving Everyone rwx access on my cygwin installation folder. what a pia. any idea why when running it as a service i saw no logs in the Event Viewer or in /var/log/sshd.log that indicated any of this? On Wed, Aug 21, 2013 at 1:52 PM, anatoly yakovenko aeyakove...@gmail.com wrote: I can't seem to login in with a password or with a key. /var/log/sshd.log doesn't show any errors and i dont see anything in the event viewer. i set the log level to VERBOSE in sshd_config, but nothing is shown in either. When i had incorrect permissions in /var/empty, i got errors in the event viewer and /var/log/sshd.log, so i am think logging is working, but i am not sure its reading /etc/sshd_config. I am pretty sure permissions on my home directory, .ssh and .ssh/authorized_keys are correct. One thing, my user is a domain user (not really savvy with windows login stuff), and I am pretty sure i added him to the local login permissions thing. any ideas? This is the output from my client $ ssh -v myhost OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012 debug1: Reading configuration data /Users/myuser/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 53: Applying options for * debug1: Connecting to myhost [10.52.54.182] port 22. debug1: Connection established. debug1: identity file /Users/myuser/.ssh/id_rsa type 1 debug1: identity file /Users/myuser/.ssh/id_rsa-cert type -1 debug1: identity file /Users/myuser/.ssh/id_dsa type -1 debug1: identity file /Users/myuser/.ssh/id_dsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2 debug1: match: OpenSSH_6.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.9 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-ctr hmac-md5 none debug1: kex: client-server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA 60:77:ad:bf:4c:dc:85:2d:11:1b:c1:a2:ac:4e:09:ea debug1: Host 'myhost' is known and matches the RSA host key. debug1: Found key in /Users/myuser/.ssh/known_hosts:8 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/myuser/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /Users/myuser/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password myuser@myhost's password: -- 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 -- 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: setting up sshd on windows 7
On 8/23/2013 11:42 AM, Anatoly Yakovenko wrote: So i ran sshd by hand, which gave me an obnoxious error about /var/empty not being owned by root. turns out it just needs to be owned by the user running sshd. after i was able to run it by hand with -d, i saw an error that /bin/bash is not executable for my user. I was able to fix this by giving Everyone rwx access on my cygwin installation folder. Because 'sshd' is finicky about permissions, doing this may well have removed your ability to run 'sshd' as a service under the default service user 'cyg_server'. With that would also come the loss of the ability to login with public key authentication. If any of this is important to you, you need to restore the previous state. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: setting up sshd on windows 7
Because 'sshd' is finicky about permissions, doing this may well have removed your ability to run 'sshd' as a service under the default service user 'cyg_server'. With that would also come the loss of the ability to login with public key authentication. If any of this is important to you, you need to restore the previous state. actually, worked fine. I added Full Control to Everyone to the windows directory, not via chmod/chown, and I am able to run it as a service without any issues. I have this weird problem that I am not sure if its due to sshd or not. I have the msvc toolchain checked into version control, so its not installed normally, when i use it as a normal user logged into my desktop everything works fine, but when i try to link in an ssh terminal i get LINK : fatal error LNK1101: incorrect MSPDB100.DLL version; recheck installation of this product make: *** [WinNT_Debug/test.exe] Error 77 If i start a screen as a regular user then login in via ssh and attach my screen everything works fine as well. any idea what i could be missing? Thanks, Anatoly -- 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
setting up sshd on windows 7
I can't seem to login in with a password or with a key. /var/log/sshd.log doesn't show any errors and i dont see anything in the event viewer. i set the log level to VERBOSE in sshd_config, but nothing is shown in either. When i had incorrect permissions in /var/empty, i got errors in the event viewer and /var/log/sshd.log, so i am think logging is working, but i am not sure its reading /etc/sshd_config. I am pretty sure permissions on my home directory, .ssh and .ssh/authorized_keys are correct. One thing, my user is a domain user (not really savvy with windows login stuff), and I am pretty sure i added him to the local login permissions thing. any ideas? This is the output from my client $ ssh -v myhost OpenSSH_5.9p1, OpenSSL 0.9.8x 10 May 2012 debug1: Reading configuration data /Users/myuser/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 53: Applying options for * debug1: Connecting to myhost [10.52.54.182] port 22. debug1: Connection established. debug1: identity file /Users/myuser/.ssh/id_rsa type 1 debug1: identity file /Users/myuser/.ssh/id_rsa-cert type -1 debug1: identity file /Users/myuser/.ssh/id_dsa type -1 debug1: identity file /Users/myuser/.ssh/id_dsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2 debug1: match: OpenSSH_6.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.9 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-ctr hmac-md5 none debug1: kex: client-server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA 60:77:ad:bf:4c:dc:85:2d:11:1b:c1:a2:ac:4e:09:ea debug1: Host 'myhost' is known and matches the RSA host key. debug1: Found key in /Users/myuser/.ssh/known_hosts:8 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/myuser/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /Users/myuser/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password myuser@myhost's password: -- 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
Installing sshd on Windows 2008 R2 in a domain
Hello, New fresh server. I'm trying to install sshd with all the latest release of cygwin. But when I what to connect as a domain user, I get only this error in the event log : Sshd: PID 3212: fatal: seteuid 10500: Permission denied I have googled all this afternoon, but all tips didn't help me. I tried running the service with a local account, a domain account, giving all the permissions needed with editrights, but still getting the error. Any clue from the list ? Thank you and regards Philippe RITTER -- 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: Installing sshd on Windows 2008 R2 in a domain
On 12/22/2011 10:06 AM, RITTER, Philippe wrote: Hello, New fresh server. I'm trying to install sshd with all the latest release of cygwin. But when I what to connect as a domain user, I get only this error in the event log : Sshd: PID 3212: fatal: seteuid 10500: Permission denied I have googled all this afternoon, but all tips didn't help me. I tried running the service with a local account, a domain account, giving all the permissions needed with editrights, but still getting the error. Any clue from the list ? Check the User's Guide: http://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview There is no clear cut single solution for you, but you do have a couple options available depending on your needs. -Jeremy -- 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: SSHD Issue Windows 2003 64 bit
Isn't openssh necessary to run 'ssh-host-config'? I've re-installed a fresh instance of cygwin without openssh (only cygrunsrv). Attached is the output from cygcheck. On 8/22/2011 1:12 PM, Gary wrote: Doing a 'set -x' in my terminal window only outputted: '+ssh-host-config' with no other information. Here is the actual path value inside the 'path' variable in my case: C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support Tools\;C:\Program Files (x86)\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program Files (x86)\Java\jre6\bin;C:\usr\bin Attached is the cygcheck.out ran by cygcheck -s -v -r cygcheck.out. There is a warning stating that there are multiple cygwin1.dll files in my path, I check and there are only one after grepping it out: -rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll Thanks for your help! There's a few things here that you should clean-up: * Your path points to a non-Cygwin perl. Please either remove that installation or remove the install directory from your path. * You have installed Cygwin multiple times on this machine. Can you create a new installation where you only install Cygwin once? * OpenSSH is one of these installations. You are virtually guaranteed of a non-working 'sshd' if you install this 3rd party app. If you want to use Cygwin's 'sshd', don't install OpenSSH. If you prefer to use OpenSSH, install it and not Cygwin's 'openssh' package. Better yet, don't install Cygwin at all in this case. -- Larry -- Gary Phelps Cygwin Configuration Diagnostics Current System Time: Tue Aug 23 11:50:39 2011 Windows 2003 Server R2 Enterprise Edition Ver 5.2 Build 3790 Service Pack 2 Running under WOW64 on AMD64 Running in Terminal Service session Path: C:\Perl\site\bin C:\Perl\bin C:\Program Files (x86)\Support Tools\ C:\Program Files (x86)\Windows Resource Kits\Tools\ C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\system32\WBEM c:\Program Files (x86)\Java\jre6\bin C:\usr\bin C:\cygwin\bin Output from C:\cygwin\bin\id.exe UID: 400(Administrator) GID: 401(mkpasswd) 401(mkpasswd) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS PWD = '/usr/sbin' HOME = '/home/Administrator' HOMEPATH = '\Documents and Settings\Administrator' APPDATA = 'C:\Documents and Settings\Administrator\Application Data' ProgramW6432 = 'C:\Program Files' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'EM64T Family 6 Model 44 Stepping 2, GenuineIntel' WINDIR = 'C:\WINDOWS' USERDOMAIN = 'XEN-WIN32R2' CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' TEMP = '/cygdrive/c/WINDOWS/TEMP/1' COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files' USERNAME = 'Administrator' ClusterLog = 'C:\WINDOWS\Cluster\cluster.log' PROCESSOR_LEVEL = '6' ProgramFiles(x86) = 'C:\Program Files (x86)' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' PROCESSOR_ARCHITEW6432 = 'AMD64' USERPROFILE = 'C:\Documents and Settings\Administrator' CLIENTNAME = 'GPHELPS-T400' LOGONSERVER = '\\XEN-WIN32R2' CommonProgramW6432 = 'C:\Program Files\Common Files' PROCESSOR_ARCHITECTURE = 'x86' !C: = 'C:\cygwin\bin' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' TMP = '/cygdrive/c/WINDOWS/TEMP/1' SYSTEMROOT = 'C:\WINDOWS' PROCESSOR_REVISION = '2c02' PROGRAMFILES = 'C:\Program Files (x86)' NUMBER_OF_PROCESSORS = '7' SESSIONNAME = 'RDP-Tcp#1' COMPUTERNAME = 'XEN-WIN32R2' _ = '/usr/bin/cygcheck' OLDPWD = '/usr/bin' HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin\setup HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\Cygwin (default) = (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations (default) = '\??\C:\cygwin' HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options 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 c: hd NTFS 20465Mb 30% CP CS UN PA FC 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,auto Found: C:\cygwin\bin\awk - C:\cygwin\bin\gawk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Not Found: crontab Found: C:\WINDOWS\system32\find.exe Found: C:\cygwin\bin\find.exe Warning: C:\WINDOWS\system32\find.exe hides C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Found: C:\cygwin\bin\kill.exe Not Found: ld Found:
Re: SSHD Issue Windows 2003 64 bit
On 8/23/2011 2:54 PM, Gary wrote: On 8/22/2011 1:12 PM, Gary wrote: Doing a 'set -x' in my terminal window only outputted: '+ssh-host-config' with no other information. Here is the actual path value inside the 'path' variable in my case: C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support Tools\;C:\Program Files (x86)\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program Files (x86)\Java\jre6\bin;C:\usr\bin Attached is the cygcheck.out ran by cygcheck -s -v -r cygcheck.out. There is a warning stating that there are multiple cygwin1.dll files in my path, I check and there are only one after grepping it out: -rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll Thanks for your help! There's a few things here that you should clean-up: * Your path points to a non-Cygwin perl. Please either remove that installation or remove the install directory from your path. * You have installed Cygwin multiple times on this machine. Can you create a new installation where you only install Cygwin once? * OpenSSH is one of these installations. You are virtually guaranteed of a non-working 'sshd' if you install this 3rd party app. If you want to use Cygwin's 'sshd', don't install OpenSSH. If you prefer to use OpenSSH, install it and not Cygwin's 'openssh' package. Better yet, don't install Cygwin at all in this case. Isn't openssh necessary to run 'ssh-host-config'? I've re-installed a fresh instance of cygwin without openssh (only cygrunsrv). Attached is the output from cygcheck. You had installed http://sshwindows.sourceforge.net/ in the previous virtual machine. This is incompatible with Cygwin's installation. That's why I recommended choosing it or Cygwin and its package. So if you're content to use Cygwin's package, you can install openssh via setup.exe now. I hadn't noticed that you are using Xen as the basis for your virtualization. Be aware that Xen has had problems in the past supporting Cygwin. I don't know if those issues have been resolved in Xen or not. But if you continue to experience trouble under Xen, you may want to try a different product like VirtualBox, VMWare, etc. That may help you. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
On 8/19/2011 5:53 PM, Gary wrote: I've re-installed cygwin on a fresh virtual machine (offline install) and have tried running: 'ssh-host-config' -- still no echo from the terminal Typing 'set -x' into the 'bash' shell before running the above might provide some helpful debugging feedback info for you. 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service:OpenService: Win32 error 1060:The specified service does not exist as an installed service. 'net start sshd' -- the service name is invalid. More help is available by typing NET HELPMSG 2185. Not surprising since 'ssh-host-config' didn't run/run correctly. My environment variables below: Variable:Home Value: C:\ Remove HOME. You don't need it. Variable: Path Value: C:\cygwin\bin You should have a little more than just this. Windows system paths should also be in there. Did you edit the path? Variable:TEMP Value: %USERPROFILE%\Local Settings\Temp Variable:TMP Value: %USERPROFILE%\Local Settings\Temp Remove these. I have re-created the passwd file and group file via our previous conversations. What other steps could I take to ensure SSHD to run as a service on Windows Server 2003 r2 64bit? Any other ideas? I don't have time to check through the archives to see if we've been over this route but it seems to me like we need to look at your configuration. Read and follow the instructions found at this link: http://cygwin.com/problems.html -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
Doing a 'set -x' in my terminal window only outputted: '+ssh-host-config' with no other information. Here is the actual path value inside the 'path' variable in my case: C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support Tools\;C:\Program Files (x86)\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program Files (x86)\Java\jre6\bin;C:\usr\bin Attached is the cygcheck.out ran by cygcheck -s -v -r cygcheck.out. There is a warning stating that there are multiple cygwin1.dll files in my path, I check and there are only one after grepping it out: -rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll Thanks for your help! On 8/19/2011 5:53 PM, Gary wrote: I've re-installed cygwin on a fresh virtual machine (offline install) and have tried running: 'ssh-host-config' -- still no echo from the terminal Typing 'set -x' into the 'bash' shell before running the above might provide some helpful debugging feedback info for you. 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service:OpenService: Win32 error 1060:The specified service does not exist as an installed service. 'net start sshd' -- the service name is invalid. More help is available by typing NET HELPMSG 2185. Not surprising since 'ssh-host-config' didn't run/run correctly. My environment variables below: Variable:Home Value: C:\ Remove HOME. You don't need it. Variable: Path Value: C:\cygwin\bin You should have a little more than just this. Windows system paths should also be in there. Did you edit the path? Variable:TEMP Value: %USERPROFILE%\Local Settings\Temp Variable:TMP Value: %USERPROFILE%\Local Settings\Temp Remove these. I have re-created the passwd file and group file via our previous conversations. What other steps could I take to ensure SSHD to run as a service on Windows Server 2003 r2 64bit? Any other ideas? I don't have time to check through the archives to see if we've been over this route but it seems to me like we need to look at your configuration. Read and follow the instructions found at this link: http://cygwin.com/problems.html -- Larry _ -- Gary Phelps Cygwin Configuration Diagnostics Current System Time: Mon Aug 22 10:03:58 2011 Windows 2003 Server R2 Enterprise Edition Ver 5.2 Build 3790 Service Pack 2 Running under WOW64 on AMD64 Running in Terminal Service session Path: C:\Perl\site\bin C:\Perl\bin C:\Program Files (x86)\Support Tools\ C:\Program Files (x86)\Windows Resource Kits\Tools\ C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\system32\WBEM c:\Program Files (x86)\Java\jre6\bin C:\usr\bin C:\cygwin\bin Output from C:\cygwin\bin\id.exe UID: 500(Administrator) GID: 513(None) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS PWD = '/usr/bin' HOME = '/cygdrive/c' HOMEPATH = '\Documents and Settings\Administrator' APPDATA = 'C:\Documents and Settings\Administrator\Application Data' ProgramW6432 = 'C:\Program Files' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'EM64T Family 6 Model 44 Stepping 2, GenuineIntel' WINDIR = 'C:\WINDOWS' USERDOMAIN = 'XEN-WIN32R2' CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' TEMP = '/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1' COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files' USERNAME = 'Administrator' ClusterLog = 'C:\WINDOWS\Cluster\cluster.log' PROCESSOR_LEVEL = '6' ProgramFiles(x86) = 'C:\Program Files (x86)' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' PROCESSOR_ARCHITEW6432 = 'AMD64' USERPROFILE = 'C:\Documents and Settings\Administrator' CLIENTNAME = 'GPHELPS-T400' LOGONSERVER = '\\XEN-WIN32R2' CommonProgramW6432 = 'C:\Program Files\Common Files' PROCESSOR_ARCHITECTURE = 'x86' !C: = 'C:\cygwin\bin' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' PROMPT = '$P$G' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' TMP = '/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1' SYSTEMROOT = 'C:\WINDOWS' PROCESSOR_REVISION = '2c02' PROGRAMFILES = 'C:\Program Files (x86)' NUMBER_OF_PROCESSORS = '7' SESSIONNAME = 'RDP-Tcp#4' COMPUTERNAME = 'XEN-WIN32R2' _ = '/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin\setup HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\Cygwin (default) = (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 0x000a native = 'C:\Program Files (x86)\OpenSSH\' HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home
Re: SSHD Issue Windows 2003 64 bit
On 8/22/2011 1:12 PM, Gary wrote: Doing a 'set -x' in my terminal window only outputted: '+ssh-host-config' with no other information. Here is the actual path value inside the 'path' variable in my case: C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support Tools\;C:\Program Files (x86)\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program Files (x86)\Java\jre6\bin;C:\usr\bin Attached is the cygcheck.out ran by cygcheck -s -v -r cygcheck.out. There is a warning stating that there are multiple cygwin1.dll files in my path, I check and there are only one after grepping it out: -rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll Thanks for your help! There's a few things here that you should clean-up: * Your path points to a non-Cygwin perl. Please either remove that installation or remove the install directory from your path. * You have installed Cygwin multiple times on this machine. Can you create a new installation where you only install Cygwin once? * OpenSSH is one of these installations. You are virtually guaranteed of a non-working 'sshd' if you install this 3rd party app. If you want to use Cygwin's 'sshd', don't install OpenSSH. If you prefer to use OpenSSH, install it and not Cygwin's 'openssh' package. Better yet, don't install Cygwin at all in this case. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
I've re-installed cygwin on a fresh virtual machine (offline install) and have tried running: 'ssh-host-config' -- still no echo from the terminal 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service:OpenService: Win32 error 1060:The specified service does not exist as an installed service. 'net start sshd' -- the service name is invalid. More help is available by typing NET HELPMSG 2185. My environment variables below: Variable:Home Value: C:\ Variable: Path Value: C:\cygwin\bin Variable:TEMP Value: %USERPROFILE%\Local Settings\Temp Variable:TMP Value: %USERPROFILE%\Local Settings\Temp I have re-created the passwd file and group file via our previous conversations. What other steps could I take to ensure SSHD to run as a service on Windows Server 2003 r2 64bit? Any other ideas? On 8/16/2011 6:25 PM, Gary wrote: Sounds good I'll take those steps; In the meantime my cygwin.bat file looks like this: [at]echo off (note: at sign removed because it was causing false positives on an email filter) CYGWIN=binmode tty ntsec C: chdir C:\Cygwin\bin bash --login -i FWIW, you don't need any of the values you've added to the CYGWIN environment variable. They are all deprecated or will be in the cygwin 1.7.10 package. Their existence, however, should not cause any problems. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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 -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
I've re-installed cygwin on a fresh virtual machine (offline install) and have tried running: 'ssh-host-config' -- still no echo from the terminal 'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service: OpenService: Win32 error 1060:The specified service does not exist as an installed service. 'net start sshd' -- The service name is invalid. More help is available by typing NET HELPMSG 2185. My environment variables below: Variable:Home Value: C:\ Variable: Path Value: C:\cygwin\bin Variable:TEMP Value: %USERPROFILE%\Local Settings\Temp Variable:TMP Value: %USERPROFILE%\Local Settings\Temp I have re-created the passwd file and group file via our previous conversations. What other steps could I take to ensure SSHD to run as a service on Windows Server 2003 r2 64bit? Any other ideas? On 8/16/2011 6:25 PM, Gary wrote: Sounds good I'll take those steps; In the meantime my cygwin.bat file looks like this: [at]echo off (note: at sign removed because it was causing false positives on an email filter) CYGWIN=binmode tty ntsec C: chdir C:\Cygwin\bin bash --login -i FWIW, you don't need any of the values you've added to the CYGWIN environment variable. They are all deprecated or will be in the cygwin 1.7.10 package. Their existence, however, should not cause any problems. -- Larry -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
Sounds good I'll take those steps; In the meantime my cygwin.bat file looks like this: [at]echo off (note: at sign removed because it was causing false positives on an email filter) CYGWIN=binmode tty ntsec C: chdir C:\Cygwin\bin bash --login -i -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
On 8/16/2011 6:25 PM, Gary wrote: Sounds good I'll take those steps; In the meantime my cygwin.bat file looks like this: [at]echo off (note: at sign removed because it was causing false positives on an email filter) CYGWIN=binmode tty ntsec C: chdir C:\Cygwin\bin bash --login -i FWIW, you don't need any of the values you've added to the CYGWIN environment variable. They are all deprecated or will be in the cygwin 1.7.10 package. Their existence, however, should not cause any problems. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
Any ideas? On Fri, Aug 12, 2011 at 2:54 PM, Gary gary.mphe...@gmail.com wrote: Yeah that was a typo.. So my /etc/passwd /etc/group file both have the SYSTEM in them: SYSTEM:S-1-5-18:18: - Group SYSTEM:*:18:544:,S-1-5-18:: - passwd Whenever I run 'ssh-host-config' I receive no echo from the terminal, I don't see 'cyg_srv' anywhere in my passwd file below: SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-XEN-VM64\Administrator,S-1-5-21-693619687-569673921-3156715980-500:/home/Administrator:/bin/switch Guest:unused_by_nt/2000/xp:501:513:U-XEN-VM64\Guest,S-1-5-21-693619687-569673921-3156715980-501:/home/Guest:/bin/switch scadmin:unused_by_nt/2000/xp:1006:513:scadmin,U-XEN-VM64\scadmin,S-1-5-21-693619687-569673921-3156715980-1006:/home/scadmin:/bin/switch SUPPORT_388945a0:unused_by_nt/2000/xp:1001:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US,U-XEN-VM64\SUPPORT_388945a0,S-1-5-21-693619687-569673921-3156715980-1001:/home/SUPPORT_388945a0:/bin/switch On Thu, Aug 11, 2011 at 2:33 PM, Gary gary.mphe...@gmail.com wrote: Created the passwd and group files from: /bin/mkpasswd -l -c /etc/passwd /bin/mkgroup - l -c /etc/group passwd files looks good now, moved passwd file and re-ran ./000-cygwin-post-install.sh Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find a passwd-grp.sh script. Both files should actually be in /etc/postinstall and end in .sh.done Just try running /bin/mkpasswd -l -c /etc/passwd and /bin/mkgroup - l -c /etc/group manually. What should my passwd file look like? On a Windows 7 non domain machine like this for instance (mind you, line breaks and I don't run sshd as service on my machine): SYSTEM:*:18:544:,S-1-5-18:: LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19:: NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350- 3027294242-313109463-500:/home/Administrator:/bin/bash Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242- 313109463-501:/home/Guest:/bin/bash HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S- 1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser $:/bin/bash thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350- 3027294242-313109463-1001:/home/thorsten:/bin/bash __vmware_user__:unused:1004:513:__vmware_user__,U-hombre \__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/ __vmware_user__:/bin/bash Thorsten -- 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 -- Gary Phelps -- Gary Phelps -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
On 8/15/2011 5:11 PM, Gary wrote: On Fri, Aug 12, 2011 at 2:54 PM, Garygary.mphelps wrote: Yeah that was a typo.. So my /etc/passwd /etc/group file both have the SYSTEM in them: SYSTEM:S-1-5-18:18: - Group SYSTEM:*:18:544:,S-1-5-18:: - passwd Whenever I run 'ssh-host-config' I receive no echo from the terminal, I don't see 'cyg_srv' anywhere in my passwd file below: snip Any ideas? Well, that's not right. There must be something in your environment that's getting in the way. Check your TERM value. Here's the start of output from 'ssh-host-config' on my machine: $ ssh-host-config *** Info: Generating /etc/ssh_host_key *** Info: Generating /etc/ssh_host_rsa_key *** Info: Generating /etc/ssh_host_dsa_key *** Info: Generating /etc/ssh_host_ecdsa_key *** Info: Creating default /etc/ssh_config file *** Info: Creating default /etc/sshd_config file *** Info: Privilege separation is set to yes by default since OpenSSH 3.3. *** Info: However, this requires a non-privileged account called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh/READ ME.privsep. *** Query: Should privilege separation be used? (yes/no) yes *** Info: Note that creating a new user requires that the current account have *** Info: Administrator privileges. Should this script attempt to create a *** Query: new local account 'sshd'? (yes/no) yes *** Info: Updating /etc/sshd_config file . . . -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
Yup, that's the output I get on my 32-bit windows machine, I'm not seeing any value in environment for 'TERM'. Are you referring to PATH? %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\cygwin\bin;c:\cygwin\usr\bin;c:\cygwin\sbin;c:\cygwin\usr\sbin;C:\Program Files (x86)\OpenSSH\bin On Tue, Aug 9, 2011 at 1:47 PM, Gary gary.mphe...@gmail.com wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, The Performance Logs and Alerts service'. Also when I execute the following 'net start sshd' from the cygwin terminal I receive the following: 'The SSHD service is starting. The SSHD service could not be started. The service did not report an error'. Anything would help, thanks! - Gary -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
On 8/15/2011 7:11 PM, Gary wrote: Yup, that's the output I get on my 32-bit windows machine, I'm not seeing any value in environment for 'TERM'. This should be set to cygwin if you're running from 'cygwin.bat'. Are you referring to PATH? %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\cygwin\bin;c:\cygwin\usr\bin;c:\cygwin\sbin;c:\cygwin\usr\sbin;C:\Program Files (x86)\OpenSSH\bin That's certainly an important part of your environment and I do believe that you've hit this one right on the nose! You have an alternate installation of OpenSSH that's getting in your way. Uninstall it and try again. I think you'll have better luck. If not, you may find it's easiest/quickest to just wipe your Cygwin installation and reinstall. If that's too drastic for you, you'll want to go through 'ssh-host-config' manually to make sure that everything is properly configured. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
Yeah that was a typo.. So my /etc/passwd /etc/group file both have the SYSTEM in them: SYSTEM:S-1-5-18:18: - Group SYSTEM:*:18:544:,S-1-5-18:: - passwd Whenever I run 'ssh-host-config' I receive no echo from the terminal, I don't see 'cyg_srv' anywhere in my passwd file below: SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-XEN-VM64\Administrator,S-1-5-21-693619687-569673921-3156715980-500:/home/Administrator:/bin/switch Guest:unused_by_nt/2000/xp:501:513:U-XEN-VM64\Guest,S-1-5-21-693619687-569673921-3156715980-501:/home/Guest:/bin/switch scadmin:unused_by_nt/2000/xp:1006:513:scadmin,U-XEN-VM64\scadmin,S-1-5-21-693619687-569673921-3156715980-1006:/home/scadmin:/bin/switch SUPPORT_388945a0:unused_by_nt/2000/xp:1001:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US,U-XEN-VM64\SUPPORT_388945a0,S-1-5-21-693619687-569673921-3156715980-1001:/home/SUPPORT_388945a0:/bin/switch On Thu, Aug 11, 2011 at 2:33 PM, Gary gary.mphe...@gmail.com wrote: Created the passwd and group files from: /bin/mkpasswd -l -c /etc/passwd /bin/mkgroup - l -c /etc/group passwd files looks good now, moved passwd file and re-ran ./000-cygwin-post-install.sh Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find a passwd-grp.sh script. Both files should actually be in /etc/postinstall and end in .sh.done Just try running /bin/mkpasswd -l -c /etc/passwd and /bin/mkgroup - l -c /etc/group manually. What should my passwd file look like? On a Windows 7 non domain machine like this for instance (mind you, line breaks and I don't run sshd as service on my machine): SYSTEM:*:18:544:,S-1-5-18:: LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19:: NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350- 3027294242-313109463-500:/home/Administrator:/bin/bash Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242- 313109463-501:/home/Guest:/bin/bash HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S- 1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser $:/bin/bash thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350- 3027294242-313109463-1001:/home/thorsten:/bin/bash __vmware_user__:unused:1004:513:__vmware_user__,U-hombre \__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/ __vmware_user__:/bin/bash Thorsten -- 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 -- Gary Phelps -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
* Gary (Wed, 10 Aug 2011 15:59:14 -0700) The logs specify: /var/empty must be owned by root and not group or world-writable. That's pretty clear, isn't it? I've tried changing permissions, What exactly did you try? and also looking on the forums for this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't figure it out. Changing ownership is done with chown and permissions with chmod. Thorsten -- 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: SSHD Issue Windows 2003 64 bit
On 8/11/2011 4:15 AM, Thorsten Kampe wrote: * Gary (Wed, 10 Aug 2011 15:59:14 -0700) The logs specify: /var/empty must be owned by root and not group or world-writable. That's pretty clear, isn't it? I've tried changing permissions, What exactly did you try? I expect the confusion comes from the stock sshd message that specifies 'root' where on Cygwin it really needs to be the user set up to run the service ('LocalSystem' on XP x86 and, typically, 'cyg_server' on everything else). -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
I've attempted chmod from the terminal and to change the permissions through the standard UI. I've attempted to chown to SYSTEM, but the user does not exist. Here ar e the permission settings for the /var/empty folder: bash-4.1$ getfacl empty # file: empty # owner: Administrator # group: mkpasswd user::rwx group::r-x mask:rwx other:r-x default:user::rwx default:user:Administrator:rwx default:group::r-x default:mask:rwx default:other:r-x On Thu, Aug 11, 2011 at 1:15 AM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Gary (Wed, 10 Aug 2011 15:59:14 -0700) The logs specify: /var/empty must be owned by root and not group or world-writable. That's pretty clear, isn't it? I've tried changing permissions, What exactly did you try? and also looking on the forums for this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't figure it out. Changing ownership is done with chown and permissions with chmod. Thorsten -- 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 -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
* Gary (Thu, 11 Aug 2011 10:01:58 -0700) I've attempted chmod from the terminal and to change the permissions through the standard UI. Terminal is better. Try again chmod 700 /var/empty. I've attempted to chown to SYSTEM, but the user does not exist. It should: % grep -i system /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Try rerunning 000-cygwin-post-install.sh or passwd-grp.sh (move your passwd file first). Thorsten -- 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: SSHD Issue Windows 2003 64 bit
I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find a passwd-grp.sh script. What should my passwd file look like? On Thu, Aug 11, 2011 at 10:33 AM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Gary (Thu, 11 Aug 2011 10:01:58 -0700) I've attempted chmod from the terminal and to change the permissions through the standard UI. Terminal is better. Try again chmod 700 /var/empty. I've attempted to chown to SYSTEM, but the user does not exist. It should: % grep -i system /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Try rerunning 000-cygwin-post-install.sh or passwd-grp.sh (move your passwd file first). Thorsten -- 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 -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
* Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find a passwd-grp.sh script. Both files should actually be in /etc/postinstall and end in .sh.done Just try running /bin/mkpasswd -l -c /etc/passwd and /bin/mkgroup - l -c /etc/group manually. What should my passwd file look like? On a Windows 7 non domain machine like this for instance (mind you, line breaks and I don't run sshd as service on my machine): SYSTEM:*:18:544:,S-1-5-18:: LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19:: NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350- 3027294242-313109463-500:/home/Administrator:/bin/bash Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242- 313109463-501:/home/Guest:/bin/bash HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S- 1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser $:/bin/bash thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350- 3027294242-313109463-1001:/home/thorsten:/bin/bash __vmware_user__:unused:1004:513:__vmware_user__,U-hombre \__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/ __vmware_user__:/bin/bash Thorsten -- 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: SSHD Issue Windows 2003 64 bit
Created the passwd and group files from: /bin/mkpasswd -l -c /etc/passwd /bin/mkgroup - l -c /etc/group passwd files looks good now, moved passwd file and re-ran ./000-cygwin-post-install.sh Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe thors...@thorstenkampe.de wrote: * Gary (Thu, 11 Aug 2011 11:25:04 -0700) I've tried re-running the 000-cygwin-post-install.sh receive no echo from the terminal, I've moved the passwd file (from my understanding outside the directory before running the post-install). My passwd file looks like this: sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin I can't find a passwd-grp.sh script. Both files should actually be in /etc/postinstall and end in .sh.done Just try running /bin/mkpasswd -l -c /etc/passwd and /bin/mkgroup - l -c /etc/group manually. What should my passwd file look like? On a Windows 7 non domain machine like this for instance (mind you, line breaks and I don't run sshd as service on my machine): SYSTEM:*:18:544:,S-1-5-18:: LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19:: NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350- 3027294242-313109463-500:/home/Administrator:/bin/bash Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242- 313109463-501:/home/Guest:/bin/bash HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S- 1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser $:/bin/bash thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350- 3027294242-313109463-1001:/home/thorsten:/bin/bash __vmware_user__:unused:1004:513:__vmware_user__,U-hombre \__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/ __vmware_user__:/bin/bash Thorsten -- 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 -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
On 8/11/2011 5:33 PM, Gary wrote: Created the passwd and group files from: /bin/mkpasswd -l -c /etc/passwd /bin/mkgroup - l -c /etc/group ^ Presumably this is a typo transcribing to your email message? passwd files looks good now, moved passwd file and re-ran ./000-cygwin-post-install.sh That you didn't really need, though it probably did no harm. Can you check if SYSTEM is in '/etc/group' and '/etc/passwd' though still? Still when I 'net start sshd' I still receive the same error, also when I try to re-instantiate the service in windows.. Did you run ssh-host-config (and ssh-user-config) as specified by '/usr/share/doc/Cygwin/openssh.README'? If so, do you have 'cyg_server' in your '/etc/passwd' file? This really should be the user the service runs under on 2003 x64. -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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: SSHD Issue Windows 2003 64 bit
The logs specify: /var/empty must be owned by root and not group or world-writable. I've tried changing permissions, and also looking on the forums for this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't figure it out. Let me know, thanks! On Tue, Aug 9, 2011 at 10:27 PM, Csaba Raduly rcs...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:47 PM, Gary wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, The Performance Logs and Alerts service'. Also when I execute the following 'net start sshd' from the cygwin terminal I receive the following: 'The SSHD service is starting. The SSHD service could not be started. The service did not report an error'. Anything would help, thanks! You need to check the event log (application and/or system). Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. Ok, it boots. Which means it must be bug-free and perfect. -- Linus Torvalds People disagree with me. I just ignore them. -- Linus Torvalds -- Gary Phelps -- 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: SSHD Issue Windows 2003 64 bit
http://cygwin.com/ml/cygwin/2008-02/msg00429.html (ignore the {}) On Wed, Aug 10, 2011 at 3:59 PM, Gary gary.mphe...@gmail.com wrote: The logs specify: /var/empty must be owned by root and not group or world-writable. I've tried changing permissions, and also looking on the forums for this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't figure it out. Let me know, thanks! On Tue, Aug 9, 2011 at 10:27 PM, Csaba Raduly rcs...@gmail.com wrote: On Tue, Aug 9, 2011 at 10:47 PM, Gary wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, The Performance Logs and Alerts service'. Also when I execute the following 'net start sshd' from the cygwin terminal I receive the following: 'The SSHD service is starting. The SSHD service could not be started. The service did not report an error'. Anything would help, thanks! You need to check the event log (application and/or system). Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. Ok, it boots. Which means it must be bug-free and perfect. -- Linus Torvalds People disagree with me. I just ignore them. -- Linus Torvalds -- Gary Phelps -- Gary Phelps -- 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
SSHD Issue Windows 2003 64 bit
I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, The Performance Logs and Alerts service'. Also when I execute the following 'net start sshd' from the cygwin terminal I receive the following: 'The SSHD service is starting. The SSHD service could not be started. The service did not report an error'. Anything would help, thanks! - Gary -- 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: SSHD Issue Windows 2003 64 bit
On Tue, Aug 9, 2011 at 10:47 PM, Gary wrote: I'm having issues getting SSHD working on Windows Server 2003 64 bit. I've properly installed SSHD as a service but I receive the following error when starting the service from 'services.msc': 'The SSHD service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, The Performance Logs and Alerts service'. Also when I execute the following 'net start sshd' from the cygwin terminal I receive the following: 'The SSHD service is starting. The SSHD service could not be started. The service did not report an error'. Anything would help, thanks! You need to check the event log (application and/or system). Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. Ok, it boots. Which means it must be bug-free and perfect. -- Linus Torvalds People disagree with me. I just ignore them. -- Linus Torvalds -- 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: sshd and windows server 2003
On Mar 27 20:20, Jason Pyeron wrote: Using cygwin 1.7 and the ideas from: http://www.cygwin.com/ml/cygwin/2008-11/msg00163.html I get: $ ssh localhost r...@localhost's password: Last login: Fri Mar 27 20:00:32 2009 from 127.0.0.1 /bin/bash: Permission denied Connection to localhost closed. The user is domain\root Other Google results seem very old, and not relevant Did you try *anything* else? Checking file ownerships, looking into the event log, looking into /var/log/sshd.log, running ssh -vvv, running sshd -d, running strace... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sshd and windows server 2003
Using cygwin 1.7 and the ideas from: http://www.cygwin.com/ml/cygwin/2008-11/msg00163.html I get: $ ssh localhost r...@localhost's password: Last login: Fri Mar 27 20:00:32 2009 from 127.0.0.1 /bin/bash: Permission denied Connection to localhost closed. The user is domain\root Other Google results seem very old, and not relevant -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Brian Dessent wrote: Kevin Hilton wrote: Let me just make sure I know what you are telling me to do, since I already did this and it didnt make a difference. As an administrator, I: 1. Delete the sshd user -- Ok I manually edited the /etc/passwd file and deleted this user No, I mean delete the *user*, not a line in a passwd file. Windows has a notion of user accounts, Cygwin does not; it just mirrors the Windows database in the passwd and group file. So deleting a user means doing it in Windows, through the control panel, or with net user. On 2k3 and greater (including Vista) ssh-host-config should have created both a sshd (for privsep) and a sshd_server user (for running the service), so you'd want to run net user sshd /delete and net user sshd_server /delete. You can run net user to see the list of Windows user accounts. If you don't see these user accounts it means the ssh-host-config script wasn't able to create them, which is probably the underlying cause. The reason for suggesting to delete these users is that ssh-host-config won't recreate them if they already exist, so if they exist and are setup wrong, ssh-host-config can't help you. I was having trouble as well, only on an XP system. This last hint worked for me. (net user sshd /delete) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Thanks for the last tip about deleting the sshd user. I did that and know everything works. Just to summarize for anyone who is trying to get this working on Windows Vista Open two cygwin shells - one in Administrator mode (right click-Run Administrator mode), the other as a normal user Uninstall Steps (From previous attempted failed installations) In Adminstrator shell 1. net stop sshd 2. cygrunsrv -R sshd 3. net user Delete any user listed like sshd or sshd_server. The following syntax is to be used: net user sshd /DELETE 4. rm -R /etc/ssh* 5. mkpasswd -cl /etc/passwd 6. mkgroup --local /etc/group In User shell 1. cd ~ 2. rm -R .ssh Installation Steps In Administrator shell 1. ssh-host-config -y 2. net start sshd In User shell 1. ssh-user-config (Answer questions as appropriate to your situation) 2. Test connection: ssh -vvv localhost Things you don't need to do: 1. Turn off UAC 2. Add/Delete Users through any other interface 3. Change file permissions (on /var/empty for example) Hopefully this will help someone -- A lot of threads out there complaining of problems on Vista -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Struggling to setup sshd with Windows Vista
Where to start?? I attempting to setup the sshd within Windows Vista. For this OS documentation seems scant. openssh version OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007 At this point I dont care about priviledge separation. I can use it, or not. I attempted to setup the daemon using ssh-host-config and answered yes to using privledge separation. Now Im stuck since I cant undo the process. Im find the /usr/share/doc/openssh/README.privsep file not to be all that helpful Currently Im getting the following: $ net start sshd System error 1069 has occurred. The service did not start due to a logon failure. With /var/log/sshd.log Im finding: Privilege separation user sshd does not exist Here is my setup: $ ssh-host-config Overwrite existing /etc/ssh_config file? (yes/no) yes Generating /etc/ssh_config file Overwrite existing /etc/sshd_config file? (yes/no) yes Privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep . Should privilege separation be used? (yes/no) yes Generating /etc/sshd_config file Host configuration finished. Have fun! $ more /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-Darien\Administrator,S-1-5-21-22494 56148-3830241392-4138796912-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-Darien\Guest,S-1-5-21-2249456148-3830241392 -4138796912-501:/home/Guest:/bin/bash IUSR_NMPR:unused_by_nt/2000/xp:1000:513:IUSR_NMPR,U-Darien\IUSR_NMPR,S-1-5-21-22 49456148-3830241392-4138796912-1000:/home/IUSR_NMPR:/bin/bash klal:unused_by_nt/2000/xp:1001:513:U-Darien\klal,S-1-5-21-2249456148-3830241392- 4138796912-500:/home/klal:/bin/bash sshd:unused_by_nt/2000/xp:1002:513:sshd privsep,U-Darien\sshd,S-1-5-21-224945614 8-3830241392-4138796912-1002:/var/empty:/bin/false Its obvious I need to do something more with the sshd user?? What do I do? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Just another thing that I have noticed: $ /usr/sbin/sshd -d -d -d -D debug2: load_server_config: filename /etc/sshd_config debug2: load_server_config: done config len = 210 debug2: parse_server_config: config /etc/sshd_config len 210 debug3: /etc/sshd_config:13 setting Port 22 debug3: /etc/sshd_config:21 setting Protocol 2 debug3: /etc/sshd_config:42 setting StrictModes no debug3: /etc/sshd_config:96 setting UsePrivilegeSeparation yes debug3: /etc/sshd_config:110 setting Subsystem sftp /usr/sbin/sftp-server debug1: sshd version OpenSSH_4.7p1 debug3: Not a RSA1 key file /etc/ssh_host_rsa_key. debug1: read PEM private key done: type RSA debug1: private host key: #0 type 1 RSA debug3: Not a RSA1 key file /etc/ssh_host_dsa_key. debug1: read PEM private key done: type DSA debug1: private host key: #1 type 2 DSA /var/empty must be owned by root and not group or world-writable. Who should be the owner of /var/empty. Right now I have: drwxr-xr-x+ 2 SYSTEM SYSTEM 0 Dec 22 22:40 empty On Dec 23, 2007 4:22 AM, Kevin Hilton [EMAIL PROTECTED] wrote: Where to start?? I attempting to setup the sshd within Windows Vista. For this OS documentation seems scant. openssh version OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007 At this point I dont care about priviledge separation. I can use it, or not. I attempted to setup the daemon using ssh-host-config and answered yes to using privledge separation. Now Im stuck since I cant undo the process. Im find the /usr/share/doc/openssh/README.privsep file not to be all that helpful Currently Im getting the following: $ net start sshd System error 1069 has occurred. The service did not start due to a logon failure. With /var/log/sshd.log Im finding: Privilege separation user sshd does not exist Here is my setup: $ ssh-host-config Overwrite existing /etc/ssh_config file? (yes/no) yes Generating /etc/ssh_config file Overwrite existing /etc/sshd_config file? (yes/no) yes Privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep . Should privilege separation be used? (yes/no) yes Generating /etc/sshd_config file Host configuration finished. Have fun! $ more /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-Darien\Administrator,S-1-5-21-22494 56148-3830241392-4138796912-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-Darien\Guest,S-1-5-21-2249456148-3830241392 -4138796912-501:/home/Guest:/bin/bash IUSR_NMPR:unused_by_nt/2000/xp:1000:513:IUSR_NMPR,U-Darien\IUSR_NMPR,S-1-5-21-22 49456148-3830241392-4138796912-1000:/home/IUSR_NMPR:/bin/bash klal:unused_by_nt/2000/xp:1001:513:U-Darien\klal,S-1-5-21-2249456148-3830241392- 4138796912-500:/home/klal:/bin/bash sshd:unused_by_nt/2000/xp:1002:513:sshd privsep,U-Darien\sshd,S-1-5-21-224945614 8-3830241392-4138796912-1002:/var/empty:/bin/false Its obvious I need to do something more with the sshd user?? What do I do? -- Kevin Hilton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Kevin Hilton wrote: Just another thing that I have noticed: $ /usr/sbin/sshd -d -d -d -D That's a very bad idea. The daemon requires privileges that normal users (even administrators) don't have, so trying to run it like that as a normal user is just a recipe for breaking things. And even if you got it to work, you'd have to change all the permissions which were set up by the script for the daemon to be run as a service. Who should be the owner of /var/empty. Right now I have: drwxr-xr-x+ 2 SYSTEM SYSTEM 0 Dec 22 22:40 empty That's probably correct. You've got some indeterminate state of brokenness here. Delete the sshd user, delete the service, delete /var/empty, delete the sshd config files, recreate known good passwd and group files, and then just run ssh-host-config -y and let it create everything correctly. That is all you should ever need to do. Messing with things manually just leads to trouble unless you understand what's going on. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
* Brian Dessent (Sun, 23 Dec 2007 04:58:33 -0800) Kevin Hilton wrote: Just another thing that I have noticed: $ /usr/sbin/sshd -d -d -d -D That's a very bad idea. Kevin is obviously trying to debug things (noticed the triple -d?) so this is a really good idea... Thorsten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Thorsten Kampe wrote: $ /usr/sbin/sshd -d -d -d -D That's a very bad idea. Kevin is obviously trying to debug things (noticed the triple -d?) so this is a really good idea... I know what the sshd options mean, and no, it's really not a good idea in the slightest. Trying to debug sshd by starting it as a user is all kinds of wrong. All the file permissions will be wrong, so even if things are perfectly setup correctly, this will fail. If you modify the permissions to make this debugging work then the service will then fail to start, and as I already said normal users lack the required privileges to switch user context so this debugging will do nothing but prove you can break things. It's a thoroughly bad idea unless you are running a SYSTEM-owned shell. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
QUOTE: You've got some indeterminate state of brokenness here. Delete the sshd user, delete the service, delete /var/empty, delete the sshd config files, recreate known good passwd and group files, and then just run ssh-host-config -y and let it create everything correctly. That is all you should ever need to do. Messing with things manually just leads to trouble unless you understand what's going on. ENDQUOTE Let me just make sure I know what you are telling me to do, since I already did this and it didnt make a difference. As an administrator, I: 1. Delete the sshd user -- Ok I manually edited the /etc/passwd file and deleted this user 2. Delete the service - Ok cygrunsrv -R sshd 3. Delete the sshd config files - rm /etc/ssh*config, rm /etc/ssh*pub rm /etc/ssh*key 4. Recreate known good passwd and group files - I never modified the /etc/group file. I recreated the /etc/passwd file I had prior by just removing the sshd user. Is there something else I should be doing? 5. ssh-host-config -y -- End result is the same. When I do a net start sshd $ net start sshd System error 1069 has occurred. The service did not start due to a logon failure. /var/log/sshd.log reveals: $ more sshd.log Privilege separation user sshd does not exist So how do I create the sshd user? Is there anything I am missing?? This is my first time running into problems. Ive repeated this process on XP boxes like 20 times without incidence. Its even easier on Ubuntu. However getting this up and running on Vista is a fiasco. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
QUOTE: You've got some indeterminate state of brokenness here. Delete the sshd user, delete the service, delete /var/empty, delete the sshd config files, recreate known good passwd and group files, and then just run ssh-host-config -y and let it create everything correctly. That is all you should ever need to do. Messing with things manually just leads to trouble unless you understand what's going on. ENDQUOTE Let me just make sure I know what you are telling me to do, since I already did this and it didnt make a difference. As an administrator, I: 1. Delete the sshd user -- Ok I manually edited the /etc/passwd file and deleted this user 2. Delete the service - Ok cygrunsrv -R sshd 3. Delete the sshd config files - rm /etc/ssh*config, rm /etc/ssh*pub rm /etc/ssh*key 4. Recreate known good passwd and group files - I never modified the /etc/group file. I recreated the /etc/passwd file I had prior by just removing the sshd user. Is there something else I should be doing? 5. ssh-host-config -y -- End result is the same. When I do a net start sshd $ net start sshd System error 1069 has occurred. The service did not start due to a logon failure. /var/log/sshd.log reveals: $ more sshd.log Privilege separation user sshd does not exist So how do I create the sshd user? Is there anything I am missing?? This is my first time running into problems. Ive repeated this process on XP boxes like 20 times without incidence. Its even easier on Ubuntu. However getting this up and running on Vista is a fiasco. I stand corrected. I am finding a few differences with the described setup above (but the service fails to start): I know have sshd and sshd_server users. The /etc/group file is unchanged: $ more /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-Darien\Administrator,S-1-5-21-22494 56148-3830241392-4138796912-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-Darien\Guest,S-1-5-21-2249456148-3830241392 -4138796912-501:/home/Guest:/bin/bash IUSR_NMPR:unused_by_nt/2000/xp:1000:513:IUSR_NMPR,U-Darien\IUSR_NMPR,S-1-5-21-22 49456148-3830241392-4138796912-1000:/home/IUSR_NMPR:/bin/bash klal:unused_by_nt/2000/xp:1001:513:U-Darien\klal,S-1-5-21-2249456148-3830241392- 4138796912-500:/home/klal:/bin/bash sshd:unused_by_nt/2000/xp:1002:513:sshd privsep,U-Darien\sshd,S-1-5-21-224945614 8-3830241392-4138796912-1002:/var/empty:/bin/false sshd_server:unused_by_nt/2000/xp:1003:513:sshd server account,U-Darien\sshd_serv er,S-1-5-21-2249456148-3830241392-4138796912-1003:/var/empty:/bin/false Also the ownership of the /var/empty directory has changed: drwxr-xr-x+ 2 sshd_server Administrators0 Dec 23 14:02 . Should either the sshd or sshd_server user be part of the Administrator group? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Kevin Hilton wrote: snip Should either the sshd or sshd_server user be part of the Administrator group? You really shouldn't need to worry about the groups for these users. They are created by the 'ssh-host-config' script with the required permissions and groups. They should work for you as they were created. If you're finding this isn't true or if you're just wondering what attributes were used to create them, see the 'ssh-host-config' script. The 'sshd' user should absolutely *not* be in the Administrators group. No way. No how. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Thanks for the info, however I cant get over the hump. I believe the problem lies with the UAC, but I have no way of proving this. The sshd and sshd_server users are created. Now what?? The service will not start, and I have no debugging output to tell me why?? Is it suggested I not use privilege separation, because I really dont need this feature?? How do I start over and re-install without this feature?? Is there any known workaround in Vista -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
On Dec 23, 2007 7:19 PM, Kevin Hilton [EMAIL PROTECTED] wrote: Thanks for the info, however I cant get over the hump. I believe the problem lies with the UAC, but I have no way of proving this. The sshd and sshd_server users are created. Now what?? The service will not start, and I have no debugging output to tell me why?? Is it suggested I not use privilege separation, because I really dont need this feature?? How do I start over and re-install without this feature?? Is there any known workaround in Vista UAC (last i saw) is tuck in Control Panel - user stuff this is ONLY available on Vista Home premuim and greater. standard vista home i believe you have to use TweakVista... check out (*woogah-advertising*) stardock.com -- they make it. -- Morgan gangwere Please Excuse TOFU. Gmail/Mobile has no Power. Space does not reflect society, it expresses it. -- Castells, M., Space of Flows, Space of Places: Materials for a Theory of Urbanism in the Information Age, in The Cybercities Reader, S. Graham, Editor. 2004, Routledge: London. p. 82-93. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Struggling to setup sshd with Windows Vista
Kevin Hilton wrote: Let me just make sure I know what you are telling me to do, since I already did this and it didnt make a difference. As an administrator, I: 1. Delete the sshd user -- Ok I manually edited the /etc/passwd file and deleted this user No, I mean delete the *user*, not a line in a passwd file. Windows has a notion of user accounts, Cygwin does not; it just mirrors the Windows database in the passwd and group file. So deleting a user means doing it in Windows, through the control panel, or with net user. On 2k3 and greater (including Vista) ssh-host-config should have created both a sshd (for privsep) and a sshd_server user (for running the service), so you'd want to run net user sshd /delete and net user sshd_server /delete. You can run net user to see the list of Windows user accounts. If you don't see these user accounts it means the ssh-host-config script wasn't able to create them, which is probably the underlying cause. The reason for suggesting to delete these users is that ssh-host-config won't recreate them if they already exist, so if they exist and are setup wrong, ssh-host-config can't help you. /var/log/sshd.log reveals: $ more sshd.log Privilege separation user sshd does not exist So how do I create the sshd user? Is there anything I am missing?? This is my first time running into problems. Ive repeated this process on XP boxes like 20 times without incidence. Its even easier on Ubuntu. However getting this up and running on Vista is a fiasco. Again, you shouldn't have to do anything other than run the ssh-host-config script. It is over 600 lines of logic and meant to take care of everything required for any version of Windows. There is no manual fiddling needed. I have a Vista test system. I just ran ssh-host-config -y and it worked perfectly, so I don't see what this fiasco you talk about is. If you use UAC you you need to run Cygwin as an administrator when running ssh-host-config otherwise it will be unable to do a lot of the steps required. You can do that simply by right clicking on the Cygwin icon and choosing Run as administrator. Or disable UAC. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Using sshd on Windows 98
Hello again, thanks for your answer. I am sorry, but I didn't find the thread, that includes the solution. The only thing I had to do was to make a password hash using crypt: crypt yourpassword Then I had to insert it into the /etc/passwd file instead of use_crypt. Now I can login into Windows 98 using sshd. Indeed, as someone said it already, it is like using a security lock to close off a balsa wood door... Regards Alfred Egger Hello, is it possible to use a Cygwin sshd on Windows 98 First Edition? The machine is only used inside a abstracted network, but it is needed for a special software, and we need SSH access to the machine. I already set up a Cygwin environment and configured it with these options: Set Cygwin variable: set CYGWIN=tty set path=C:\cygwin\bin ssh-host-config -y mkpasswd -l -g /etc/passwd Contents of file: admin:use_crypt:500:544:Administrator:/home/admin:/bin/bash Administrator:use_crypt:895:544:Administrator:/home/Administrator:/bin/bash mkgroup -l /etc/group Contents of file: all::544: cd / chmod -R og-w . chmod og+w /tmp touch /var/log/sshd.log chown system:system /var/log/sshd.log /var/empty /etc/ssh_h* chmod 755 /var/empty Afterwards I started sshd.exe manually inside the /usr/sbin/ directory. Now I can connect to the machine through a SSH-client, key exchange works well, and I get a login prompt, but I cannot login using my username Administrator and the password I set using the rights management in Windows 98. Login is not even possible from localhost. Relieing to the unuseable rights management in Windows 98, is it even possible to use Windows 98 as a SSH server? Regards Alfred Egger -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Using sshd on Windows 98
Hello, is it possible to use a Cygwin sshd on Windows 98 First Edition? The machine is only used inside a abstracted network, but it is needed for a special software, and we need SSH access to the machine. I already set up a Cygwin environment and configured it with these options: Set Cygwin variable: set CYGWIN=tty set path=C:\cygwin\bin ssh-host-config -y mkpasswd -l -g /etc/passwd Contents of file: admin:use_crypt:500:544:Administrator:/home/admin:/bin/bash Administrator:use_crypt:895:544:Administrator:/home/Administrator:/bin/bash mkgroup -l /etc/group Contents of file: all::544: cd / chmod -R og-w . chmod og+w /tmp touch /var/log/sshd.log chown system:system /var/log/sshd.log /var/empty /etc/ssh_h* chmod 755 /var/empty Afterwards I started sshd.exe manually inside the /usr/sbin/ directory. Now I can connect to the machine through a SSH-client, key exchange works well, and I get a login prompt, but I cannot login using my username Administrator and the password I set using the rights management in Windows 98. Login is not even possible from localhost. Relieing to the unuseable rights management in Windows 98, is it even possible to use Windows 98 as a SSH server? Regards Alfred Egger -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Using sshd on Windows 98
Alfred Egger wrote: Hello, is it possible to use a Cygwin sshd on Windows 98 First Edition? The machine is only used inside a abstracted network, but it is needed for a special software, and we need SSH access to the machine. I already set up a Cygwin environment and configured it with these options: Set Cygwin variable: set CYGWIN=tty set path=C:\cygwin\bin ssh-host-config -y mkpasswd -l -g /etc/passwd Contents of file: admin:use_crypt:500:544:Administrator:/home/admin:/bin/bash Administrator:use_crypt:895:544:Administrator:/home/Administrator:/bin/bash mkgroup -l /etc/group Contents of file: all::544: cd / chmod -R og-w . chmod og+w /tmp touch /var/log/sshd.log chown system:system /var/log/sshd.log /var/empty /etc/ssh_h* chmod 755 /var/empty Afterwards I started sshd.exe manually inside the /usr/sbin/ directory. Now I can connect to the machine through a SSH-client, key exchange works well, and I get a login prompt, but I cannot login using my username Administrator and the password I set using the rights management in Windows 98. Login is not even possible from localhost. Relieing to the unuseable rights management in Windows 98, is it even possible to use Windows 98 as a SSH server? Did you look at the email archives? http://cygwin.com/ml/cygwin/2005-11/msg00151.html -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
running SSHD on Windows 2003 cluster
Has anyone been successfull at installing Cygwin for SSH and running the sshd service as a generic application in a cluster resource group? This is running on a Windows 2003 enterprise server and I need to be able to fail over ssh services due to an application that is running on the cluster as well. thoughts please no punches as to your running ssh on a Windows Cluster... thanks Jason -- View this message in context: http://www.nabble.com/running-SSHD-on-Windows-2003-cluster-tf3849179.html#a10903036 Sent from the Cygwin Users mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
FW: sshd on windows server 2003 64bit
I have a problem with the latest sshd on cygwin: debug2: load_server_config: filename /etc/sshd_config debug2: load_server_config: done config len = 34 debug2: parse_server_config: config /etc/sshd_config len 34 debug1: sshd version OpenSSH_4.3p2 debug3: Not a RSA1 key file /etc/ssh_host_key. debug1: read PEM private key done: type RSA debug1: private host key: #0 type 1 RSA Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec_argv[1]='-d' debug1: rexec_argv[2]='-d' debug1: rexec_argv[3]='-d' debug2: fd 3 setting O_NONBLOCK debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. debug1: fd 4 clearing O_NONBLOCK debug1: Server will not fork when running in debugging mode. debug3: send_rexec_state: entering fd = 7 config len 34 debug3: ssh_msg_send: type 0 debug3: send_rexec_state: done debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 debug1: inetd sockets after dupping: 3, 3 Connection from 192.168.96.33 port 45771 debug1: Client protocol version 2.0; client software version OpenSSH_3.1p1 debug1: match: OpenSSH_3.1p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug2: fd 3 setting O_NONBLOCK debug2: Network child is on pid 2772 debug3: preauth child monitor started debug3: mm_request_receive entering debug1: list_hostkey_types: ssh-rsa debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellma n-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,a es192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes25 6-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,a es192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes25 6-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: none debug2: kex_parse_kexinit: none debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_init: found hmac-md5 debug1: kex: client-server aes128-cbc hmac-md5 none debug2: mac_init: found hmac-md5 debug1: kex: server-client aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received debug3: mm_request_send entering: type 0 debug3: mm_choose_dh: waiting for MONITOR_ANS_MODULI debug3: mm_request_receive_expect entering: type 1 debug3: mm_request_receive entering debug3: monitor_read: checking request 0 debug3: mm_answer_moduli: got parameters: 1024 2048 8192 debug3: mm_request_send entering: type 1 debug2: monitor_read: 0 used once, disabling now debug3: mm_request_receive entering debug3: mm_choose_dh: remaining 0 debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug2: dh_gen_key: priv key bits set: 141/256 debug2: bits set: 1036/2048 debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT debug2: bits set: 1013/2048 debug3: mm_key_sign entering debug3: mm_request_send entering: type 4 debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN debug3: mm_request_receive_expect entering: type 5 debug3: mm_request_receive entering debug3: monitor_read: checking request 4 debug3: mm_answer_sign debug3: mm_answer_sign: signature 0x100134e8(271) debug3: mm_request_send entering: type 5 debug2: monitor_read: 4 used once, disabling now debug3: mm_request_receive entering debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: KEX done debug1: userauth-request for user ajk service ssh-connection method none debug1: attempt 0 failures 0 debug3: mm_getpwnamallow entering debug3: mm_request_send entering:
Re: FW: sshd on windows server 2003 64bit
Not a RSA1 key file /etc/ssh_host_key.??? You check to see if its valid file still with RSA info in there? i dunno maybe run ssh-host-config or ssh-keygen again to reset settings on server and add new RSA key in that dir. On 7/25/06, Andy Keane [EMAIL PROTECTED] wrote: I have a problem with the latest sshd on cygwin: debug2: load_server_config: filename /etc/sshd_config debug2: load_server_config: done config len = 34 debug2: parse_server_config: config /etc/sshd_config len 34 debug1: sshd version OpenSSH_4.3p2 debug3: Not a RSA1 key file /etc/ssh_host_key. debug1: read PEM private key done: type RSA debug1: private host key: #0 type 1 RSA Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec_argv[1]='-d' debug1: rexec_argv[2]='-d' debug1: rexec_argv[3]='-d' debug2: fd 3 setting O_NONBLOCK debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. debug1: fd 4 clearing O_NONBLOCK debug1: Server will not fork when running in debugging mode. debug3: send_rexec_state: entering fd = 7 config len 34 debug3: ssh_msg_send: type 0 debug3: send_rexec_state: done debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 debug1: inetd sockets after dupping: 3, 3 Connection from 192.168.96.33 port 45771 debug1: Client protocol version 2.0; client software version OpenSSH_3.1p1 debug1: match: OpenSSH_3.1p1 pat OpenSSH_2.*,OpenSSH_3.0*,OpenSSH_3.1* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug2: fd 3 setting O_NONBLOCK debug2: Network child is on pid 2772 debug3: preauth child monitor started debug3: mm_request_receive entering debug1: list_hostkey_types: ssh-rsa debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellma n-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,a es192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes25 6-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,a es192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes25 6-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hm ac-md5-96 debug2: kex_parse_kexinit: none debug2: kex_parse_kexinit: none debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_init: found hmac-md5 debug1: kex: client-server aes128-cbc hmac-md5 none debug2: mac_init: found hmac-md5 debug1: kex: server-client aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received debug3: mm_request_send entering: type 0 debug3: mm_choose_dh: waiting for MONITOR_ANS_MODULI debug3: mm_request_receive_expect entering: type 1 debug3: mm_request_receive entering debug3: monitor_read: checking request 0 debug3: mm_answer_moduli: got parameters: 1024 2048 8192 debug3: mm_request_send entering: type 1 debug2: monitor_read: 0 used once, disabling now debug3: mm_request_receive entering debug3: mm_choose_dh: remaining 0 debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug2: dh_gen_key: priv key bits set: 141/256 debug2: bits set: 1036/2048 debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT debug2: bits set: 1013/2048 debug3: mm_key_sign entering debug3: mm_request_send entering: type 4 debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN debug3: mm_request_receive_expect entering: type 5 debug3: mm_request_receive entering debug3: monitor_read: checking request 4 debug3: mm_answer_sign debug3: mm_answer_sign: signature 0x100134e8(271) debug3: mm_request_send entering: type 5 debug2: monitor_read: 4 used once, disabling now debug3: mm_request_receive entering debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting
1.5.19-4: fatal error - couldn't allocate heap after computer reboot (sshd - CopSSHd, Windows 2003 Server SP1)
I use an own unattended setup of the CopSSH 1.3.10 (may 2006, http://itefix.no/copssh), based on the Cygwin rel. 1.5.19-4 on Windows 2003 Server SP1. Hardware: Intel XEON 2.80 GHz, 2 GB RAM Every time I restart the computer the sshd service starts but all SSH connections are refused. In the same moment in /var/log/sshd.log occur entry pairs like these: --- 7 [main] ? (5856) c:\software\sshd\bin\sshd.exe: *** fatal error - couldn't allocate heap, Win32 error 0, base 0x46, top 0x47, reserve_size 61440, allocsize 65536, page_const 4096 51 [main] sshd 1740 child_copy: stack write copy failed, 0x22DDA0..0x23, done 0, windows pid 2284756, Win32 error 5 --- If I restart the sshd system service only without restarting the computer the connectivity works as expected. In that case, no further entries occur in sshd.log. On all other platforms I tested (Windows XP SP4, Windows 2003 Server R2) this problem did not occur definitely. Some similar problems I already found in this conference with other Cygwin applications, too. But I haven't found a solution that fixed this behaviour. What I have tried to solve this (all followed by a computer restart): - regtool -i set /HKLM/Software/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb 2048 - Check whether there is a second cygwin1.dll in the search path by mistake - actually not - Use an older version of OpenSSHD 3.8.1p1 based on an older cygwin release - Use the original CopSSHD setup == without any success. Thanks for your help with this, R. K. Cygwin Configuration Diagnostics Current System Time: Tue May 30 14:45:44 2006 Windows 2003 Server Ver 5.2 Build 3790 Service Pack 1 Running in Terminal Service session Path: C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\PROGRA~1\CA\SHARED~1\SCANEN~1 C:\Program Files\Microsoft SQL Server\80\Tools\Binn\ C:\Program Files\Microsoft SQL Server\90\Tools\binn\ C:\Program Files\Microsoft SQL Server\90\DTS\Binn\ C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\ C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ C:\Program Files\UltraEdit d:\gkretail\sshd\bin d:\gkretail\sshd\bin d:\gkretail\sshd\bin d:\gkretail\sshd\bin d:\gkretail\sshd\bin d:\gkretail\sshd\bin d:\gkretail\sshd\bin SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS PWD = '/usr/bin' CYGWIN = 'binmode ntsec tty' HOME = '/home/Administrator' HOMEPATH = '\Documents and Settings\Administrator' APPDATA = 'C:\Documents and Settings\Administrator\Application Data' TERM = 'cygwin' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 2 Stepping 7, GenuineIntel' WINDIR = 'C:\WINDOWS' USERDOMAIN = 'SCE06SRV952POS1' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' ANT_HOME = 'd:/gkretail/apache-ant/1.6.5' COMMANDER_PATH = 'D:\tools\totalcmd' TEMP = '/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' LIB = 'C:\Program Files\SQLXML 4.0\bin\' USERNAME = 'Administrator' CLUSTERLOG = 'C:\WINDOWS\Cluster\cluster.log' PROCESSOR_LEVEL = '15' FP_NO_HOST_CHECK = 'NO' SYSTEMDRIVE = 'C:' JAVA_HOME = 'd:/gkretail/j2re/sun/1.4.2_09' USERPROFILE = 'C:\Documents and Settings\Administrator' CLIENTNAME = 'BONSAI' LOGONSERVER = '\\SCE06SRV952POS1' ISUSER = 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\{0F86FD09-BA63-4E45-A70B-604C1106C2F2}\_isuser.dll' PROCESSOR_ARCHITECTURE = 'x86' SHLVL = '1' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' !D: = 'd:\' COMSPEC = 'C:\WINDOWS\system32\cmd.exe' TMP = '/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1' SYSTEMROOT = 'C:\WINDOWS' PROCESSOR_REVISION = '0207' PROGRAMFILES = 'C:\Program Files' NUMBER_OF_PROCESSORS = '4' AVENGINE = 'C:\PROGRA~1\CA\SHARED~1\SCANEN~1' SESSIONNAME = 'RDP-Tcp#1' COMPUTERNAME = 'SCE06SRV952POS1' _ = '/usr/bin/cygcheck' POSIXLY_CORRECT = '1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin (default) = 0x0800 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'd:\gkretail/sshd' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home (default) = 'C:\Documents and Settings' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'd:\gkretail/sshd/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS 34718Mb 17% CP CS UN PA FC d: hd NTFS138915Mb 13% CP CS UN PA FC DATA z: cd
Re: 1.5.19-4: fatal error - couldn't allocate heap after computer reboot (sshd - CopSSHd, Windows 2003 Server SP1)
On Tue, 30 May 2006, Ren� Krell wrote: I use an own unattended setup of the CopSSH 1.3.10 (may 2006, http://itefix.no/copssh), based on the Cygwin rel. 1.5.19-4 on Windows 2003 Server SP1. Hardware: Intel XEON 2.80 GHz, 2 GB RAM As people seem to be fond of saying nowadays, stop right here. What you've installed is not the official Cygwin distribution, and certainly not using the official Cygwin installer, so it's not supported on this list. Thus, any problems that you have with the resulting installation should be first addressed to whoever provided the package you've installed (i.e., copssh). FWICS, they have a forum -- try asking there. If you'd like to receive support on this list (and get a system that works, to boot), try uninstalling copssh and installing Cygwin using the official installer (the Install or update Cygwin now link on the main Cygwin website) -- simply select the openssh package, and read /usr/share/doc/Cygwin/openssh.README. Otherwise, thank you for following all the directions on the Problem Reports page, but we can't really help you. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte. But no -- you are no fool; you call yourself a fool, there's proof enough in that! -- Rostand, Cyrano de Bergerac -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problems with sshd under Windows XP
My problems are solved now. So here a short report what my problem was: I encountered two kind of problems: 1) First somewhere in the cygwin-Archive it was mentioned, that one can change the user name simply by editing /etc/passwd. As my windows name was first name\ lastname I changed it to my usual login name, let's say pauly. However Windows than does not know about a password for pauly when a login to the Windows computer is taking place because user pauly does not exist. A real change of a user name in WindowsXP Home does not seem easy as a change of the user name does not change the user's directory name (in Windows XP Home). So I accepted first name\ lastname as my login name. After a new installation of cygwin I could than install sshd even with privilege separation yes. (/etc/passwd should have the same entries as mkpasswd -l). 2) The second problem was purely ssh-related. I have linux and Windows on my machine. For linux I have a sshd running for a long time. And the host keys newly generated during the installation of sshd under Windows was of course different to the linux host keys. So the client recognized that the host keys were different and stopped the login progess. This problem can simply be solved by copying the linux hostkeys to windows. Cygwin is really fantastic! The xserver and the running sshd I find really impressive! Great job! Fabian. P.S.: Of course I also read the cygwin-doc. However I find the links actually contain better understandable instructions than the '/usr/share/doc/Cygwin/openssh.README' file, which adresses newly included features and seems somewhat inconsistent -- at least without clear, simple instructions. Anyway it works now. --- Ursprüngliche Nachricht --- Von: Larry Hall (Cygwin) [EMAIL PROTECTED] An: cygwin@cygwin.com Betreff: Re: Problems with sshd under Windows XP Datum: Wed, 01 Feb 2006 23:00:24 -0500 Fabian Pauly wrote: I tried to use sshd under Windows XP. Proceeding in the way described in http://pigtail.net/LRP/printsrv/cygwin-sshd.html or http://www.wintotal.de/Artikel/ftpserver/ftpserver2.php. If you use configuration instructions which come from sites other than Cygwin's, you should address your questions to those sites. If you install Cygwin's ssh using the instructions in '/usr/share/doc/Cygwin/openssh.README' and have problems, this would be the proper list to consult. Also, please read and follow the problem reporting guidelines at http://cygwin.com/problems.html whenever you have an inquiry concerning your installation. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Problems with sshd under Windows XP
I tried to use sshd under Windows XP. Proceeding in the way described in http://pigtail.net/LRP/printsrv/cygwin-sshd.html or http://www.wintotal.de/Artikel/ftpserver/ftpserver2.php. Which means I used UsePrivilegeSeparation yes in /etc/sshd_config However then I got the errors [EMAIL PROTECTED]:/home/fpauly cygrunsrv.exe -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Der Dienst wurde nicht gestartet. [EMAIL PROTECTED]:/home/fpauly /var/log/sshd show then [EMAIL PROTECTED]:/home/fpauly m /var/log/sshd.log Privilege separation user sshd does not exist Although took care of setting the right of /var/empty, /etc/ssh_h* correctly I could not start sshd. chown -R system:system /var/log/sshd.log /var/empty /etc/ssh_h* Thus the next try was with UsePrivilegeSeparation no (after a cygrunsrv --remove sshd). [EMAIL PROTECTED]:/home/fpauly cygrunsrv.exe --remove sshd [EMAIL PROTECTED]:/home/fpauly ssh-host-config Overwrite existing /etc/ssh_config file? (yes/no) yes Generating /etc/ssh_config file Overwrite existing /etc/sshd_config file? (yes/no) yes Privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep. Should privilege separation be used? (yes/no) no Generating /etc/sshd_config file Warning: The following functions require administrator privileges! Do you want to install sshd as service? (Say no if it's already installed as service) (yes/no) yes Which value should the environment variable CYGWIN have when sshd starts? It's recommended to set at least ntsec to be able to change user context without password. Default is ntsec. CYGWIN=ntsec The service has been installed under LocalSystem account. To start the service, call `net start sshd' or `cygrunsrv -S sshd'. Host configuration finished. Have fun! [EMAIL PROTECTED]:/home/fpauly Now sshd starts sucesfully (only that /usr/sbin/ssh -D seems to complain) [EMAIL PROTECTED]:/home/fpauly cygrunsrv.exe --start sshd [EMAIL PROTECTED]:/home/fpauly /usr/sbin/sshd.exe -Q Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. [EMAIL PROTECTED]:/home/fpauly cygrunsrv.exe --stop sshd [EMAIL PROTECTED]:/home/fpauly /usr/sbin/sshd.exe -D Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. [EMAIL PROTECTED]:/home/fpauly [EMAIL PROTECTED]:/home/fpauly cygrunsrv.exe --stop sshd [EMAIL PROTECTED]:/home/fpauly net start sshd CYGWIN sshd wird gestartet. CYGWIN sshd wurde erfolgreich gestartet. [EMAIL PROTECTED]:/home/fpauly (Erfolgeich gestartet means sucessfully started.) However now the ssh connection to my computer cannot be established [EMAIL PROTECTED]:/users/tfp/fpauly ssh -v tfpfpnote OpenSSH_3.8.1p1 Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for tfp* debug1: Connecting to tfpfpnote [172.22.185.139] port 22. debug1: Connection established. debug1: identity file /users/tfp/fpauly/.ssh/identity type 0 debug1: identity file /users/tfp/fpauly/.ssh/id_rsa type -1 debug1: identity file /users/tfp/fpauly/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-cbc hmac-md5 none debug1: kex: client-server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY @@@ @WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 72:88:64:1e:23:ef:ea:46:66:1c:e4:13:f6:d3:8a:de. Please contact your system administrator. Add correct host key in /users/tfp/fpauly/.ssh/known_hosts to get rid of this message. Offending key in /users/tfp/fpauly/.ssh/known_hosts:100 RSA host key for tfpfpnote has changed and you have
Re: Problems with sshd under Windows XP
Fabian Pauly wrote: I tried to use sshd under Windows XP. Proceeding in the way described in http://pigtail.net/LRP/printsrv/cygwin-sshd.html or http://www.wintotal.de/Artikel/ftpserver/ftpserver2.php. If you use configuration instructions which come from sites other than Cygwin's, you should address your questions to those sites. If you install Cygwin's ssh using the instructions in '/usr/share/doc/Cygwin/openssh.README' and have problems, this would be the proper list to consult. Also, please read and follow the problem reporting guidelines at http://cygwin.com/problems.html whenever you have an inquiry concerning your installation. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Using sshd on Windows 2000 with public keys
Hi all. I've been fighting this for some time now, and I can't find a solid fix to make this work. I'm running Cygwin under Windows 2000, and I'm trying to setup ssh using key authentication. The auth part works fine, but when I try to run commands that require rights inside Windows, it fails (like iisreset). I've discovered that I need to have sshd run as another user, like Administrator or something, so I did that by changing who the service runs as and setting file permissions and ownerships accordingly, and that fixed the problem for the Administrator account. But, when another user tries to login, it disconnects right away. In the event log, I see setreuid 1014: Permission denied.. I've found the fix for Windows 2003, which involves granting the user the service runs as the Change a process-level token permission, but that does not exist under Windows 2000. I can't find a fix for this for 2000. Is there such a thing? Does anyone have any ideas that could help me out? Thanks! --Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Using sshd on Windows 2000 with public keys
-Original Message- From: Bakken, Luke [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 14:43 To: McCann, Brian Subject: RE: Using sshd on Windows 2000 with public keys McCann, Brian wrote: Hi all. I've been fighting this for some time now, and I can't find a solid fix to make this work. I'm running Cygwin under Windows 2000, and I'm trying to setup ssh using key authentication. The auth part works fine, but when I try to run commands that require rights inside Windows, it fails (like iisreset). I've discovered that I need to have sshd run as another user, like Administrator or something, so I did that by changing who the service runs as and setting file permissions and ownerships accordingly, and that fixed the problem for the Administrator account. But, when another user tries to login, it disconnects right away. In the event log, I see setreuid 1014: Permission denied.. I've found the fix for Windows 2003, which involves granting the user the service runs as the Change a process-level token permission, but that does not exist under Windows 2000. I can't find a fix for this for 2000. Is there such a thing? Does anyone have any ideas that could help me out? Thanks! --Brian Rather than run sshd as someone other than SYSTEM, can you use the runas command to execute iisreset as another user? Tried that, and failed. It gave me: runas /user:administrator iisreset Enter password for administrator:RUNAS ERROR: Unable to accept input I re-did the setup from soup to nuts with a new user to run sshd as, and I can login as any users now...with keys or with passwords, but I'm back to where I started, with the command returning: Access denied, you must be an administrator of the remote computer to use this command. Either have your account added to the administrator local group of the remote computer or to the domain administrator global group. . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Using sshd on Windows 2000 with public keys
McCann, Brian wrote: Hi all. I've been fighting this for some time now, and I can't find a solid fix to make this work. I'm running Cygwin under Windows 2000, and I'm trying to setup ssh using key authentication. The auth part works fine, but when I try to run commands that require rights inside Windows, it fails (like iisreset). This is covered in the FAQ somewhere I think. Windows requires the user's password in order to do true user context switching. So when you log on using public key auth, Cygwin can only partially impersonate the user account. Things such as protected network shares will not work. There's no way around this short of using password authentication, because it's a fundamental windows requirement that the token contain the password. I've discovered that I need to have sshd run as another user, like Administrator or something, so I did that by changing who the service runs as and setting file permissions and ownerships accordingly, and that fixed the problem for the Administrator account. But, when another user tries to login, it disconnects right away. In the event log, I see setreuid 1014: Permission denied.. I've found the fix for Windows 2003, which involves granting the user the service runs as the Change a process-level token permission, but that does not exist under Windows 2000. I can't find a fix for this for 2000. Is there such a thing? Does anyone have any ideas that could help me out? You should be able to use editrights to assign the necessary privileges. Read /usr/share/doc/Cygwin/*openssh* and the contents of /usr/bin/ssh-host-config. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sshd on windows 2000
I have one server that has a problem with sshd. And its a strange problem that I don't know what is causing it. Seems to be an authentication problem but I'm not really sure about that. Also there is a problem starting it. When I try starting it the server times out on start. it starts fine though if I start it with the following command. /usr/sbin/sshd -d -d -d (while looking for problems) $ /usr/sbin/sshd -d -d -d debug2: load_server_config: filename /etc/sshd_config debug2: load_server_config: done config len = 213 debug2: parse_server_config: config /etc/sshd_config len 213 debug1: sshd version OpenSSH_4.2p1 debug1: private host key: #0 type 0 RSA1 debug3: Not a RSA1 key file /etc/ssh_host_rsa_key. debug1: read PEM private key done: type RSA debug1: private host key: #1 type 1 RSA debug3: Not a RSA1 key file /etc/ssh_host_dsa_key. debug1: read PEM private key done: type DSA debug1: private host key: #2 type 2 DSA debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec_argv[1]='-d' debug1: rexec_argv[2]='-d' debug1: rexec_argv[3]='-d' debug2: fd 3 setting O_NONBLOCK debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. Generating 768 bit RSA key. RSA key generation complete. Then when I try to connect I get the following. debug1: fd 4 clearing O_NONBLOCK debug1: Server will not fork when running in debugging mode. debug3: send_rexec_state: entering fd = 7 config len 213 debug3: ssh_msg_send: type 0 debug3: send_rexec_state: done debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 debug1: inetd sockets after dupping: 3, 3 Connection from 172.24.0.151 port 43786 debug1: Client protocol version 2.0; client software version OpenSSH_4.2 debug1: match: OpenSSH_4.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-1.99-OpenSSH_4.2 debug2: fd 3 setting O_NONBLOCK debug1: list_hostkey_types: ssh-rsa,ssh-dss debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro up14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro up14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes128-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_init: found hmac-md5 debug1: kex: client-server aes128-cbc hmac-md5 none debug2: mac_init: found hmac-md5 debug1: kex: server-client aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug2: dh_gen_key: priv key bits set: 133/256 debug2: bits set: 534/1024 debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT debug2: bits set: 510/1024 debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: KEX done debug1: userauth-request for user root service ssh-connection method none debug1: attempt 0 failures 0 debug2: input_userauth_request: setting up authctxt for root debug2: input_userauth_request: try method none Failed none for root from 172.24.0.151 port 43786 ssh2 debug1: userauth-request for user root service ssh-connection method publickey debug1: attempt 1 failures 1 debug2: input_userauth_request: try method publickey
RES: sshd on windows 2000
I've just signed up to this list and I've never seen your problem before. However, I'd suggest you look into privilege separation issues. Are you using it? Have you tried turning it off to see what happens? Best of luck, -- =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Felipe Franciosi +55-51-91230557 CPAD/HP/PUCRS - Centro de Pesquisa em Alto Desempenho http://www.cpad.pucrs.br/ [EMAIL PROTECTED] Porto Alegre, RS - Brazil =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Jeff Sadowski Enviada em: segunda-feira, 21 de novembro de 2005 21:07 Para: cygwin@cygwin.com Assunto: sshd on windows 2000 I have one server that has a problem with sshd. And its a strange problem that I don't know what is causing it. Seems to be an authentication problem but I'm not really sure about that. Also there is a problem starting it. When I try starting it the server times out on start. it starts fine though if I start it with the following command. /usr/sbin/sshd -d -d -d (while looking for problems) $ /usr/sbin/sshd -d -d -d debug2: load_server_config: filename /etc/sshd_config debug2: load_server_config: done config len = 213 debug2: parse_server_config: config /etc/sshd_config len 213 debug1: sshd version OpenSSH_4.2p1 debug1: private host key: #0 type 0 RSA1 debug3: Not a RSA1 key file /etc/ssh_host_rsa_key. debug1: read PEM private key done: type RSA debug1: private host key: #1 type 1 RSA debug3: Not a RSA1 key file /etc/ssh_host_dsa_key. debug1: read PEM private key done: type DSA debug1: private host key: #2 type 2 DSA debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec_argv[1]='-d' debug1: rexec_argv[2]='-d' debug1: rexec_argv[3]='-d' debug2: fd 3 setting O_NONBLOCK debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. Generating 768 bit RSA key. RSA key generation complete. Then when I try to connect I get the following. debug1: fd 4 clearing O_NONBLOCK debug1: Server will not fork when running in debugging mode. debug3: send_rexec_state: entering fd = 7 config len 213 debug3: ssh_msg_send: type 0 debug3: send_rexec_state: done debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 debug1: inetd sockets after dupping: 3, 3 Connection from 172.24.0.151 port 43786 debug1: Client protocol version 2.0; client software version OpenSSH_4.2 debug1: match: OpenSSH_4.2 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-1.99-OpenSSH_4.2 debug2: fd 3 setting O_NONBLOCK debug1: list_hostkey_types: ssh-rsa,ssh-dss debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro up14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes1 28-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes1 28-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: none,[EMAIL PROTECTED] debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro up14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes1 28-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1 28,arcfour256,arcfour,aes192-cbc,aes256-cbc,[EMAIL PROTECTED],aes1 28-c tr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED] ssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib debug2: kex_parse_kexinit: none,[EMAIL PROTECTED],zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_init: found hmac-md5 debug1: kex: client-server aes128-cbc hmac-md5 none debug2: mac_init: found hmac-md5 debug1: kex: server-client aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug2: dh_gen_key: priv key bits set: 133/256 debug2: bits
Re: sshd on windows 2000
Jeff Sadowski wrote: I have one server that has a problem with sshd. And its a strange problem that I don't know what is causing it. Seems to be an authentication problem but I'm not really sure about that. Also there is a problem starting it. When I try starting it the server times out on start. it starts fine though if I start it with the following command. /usr/sbin/sshd -d -d -d (while looking for problems) snip debug2: input_userauth_request: try method publickey debug1: test whether pkalg/pkblob are acceptable debug1: temporarily_use_uid: 500/513 (e=500/513) seteuid 500: No such process debug1: do_cleanup more snippage As always, if you're reporting a problem, please read and follow completely the problem reporting guidelines found at: Problem reports: http://cygwin.com/problems.html Without this, I can only make a WAG based on the information you've provided but it looks to me like you're starting 'sshd' from the command line. If that's so and you're not logged in as SYSTEM, you can't seteuid(). And lo and behold that's what the debug messages tell you! ;-) Windows isn't UNIX/Linux (yes, I know this is quite a revelation) and you cannot start 'sshd' from the command line and expect to connect as anyone other than the user that started 'sshd'. If what I just stated is not obvious to you, remove your installation of the OpenSSH package, remove all remnants of it ever being on your system, and reinstall it. Read and follow the configuration instructions in '/usr/share/doc/Cygwin/openssh.README'.If, on the other hand, the statements I made make sense to you, then you now understand that you can only 'ssh' to this machine as the user that started 'sshd'. Anyone else will fail. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sshd on windows
Hi, Does anyone know if there is a cygwin.dll free ssh server for windows? Thanks, Jennifer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd on windows
On Fri, Jan 21, 2005 at 10:58:15AM -0500, Jennifer Lai wrote: Does anyone know if there is a cygwin.dll free ssh server for windows? If there was, why would that be a useful topic for this mailing list? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd on windows
There are several. You can purchase a Windows SSH server from F-Secure or SSH Corporation. The servers support SSH2 and SFTP. I haven't looked at the F-Secure version in a long time, but the SSH Corporation version supports PKI in addition to user name / password. If you google for 'ssh server win32' you can get lots of pointers. I have no idea which of the shareware / freeware ssh servers are using cygwin; so you can research that on your own. -Jason On Fri, 21 Jan 2005 10:58:15 -0500, Jennifer Lai [REMOVED] wrote: Hi, Does anyone know if there is a cygwin.dll free ssh server for windows? Thanks, Jennifer -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: sshd on windows
Yes there is =) Install the package net/openssh and use ssh-host-config to configure it. Regards. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jennifer Lai Sent: Friday, January 21, 2005 9:58 AM To: cygwin@cygwin.com Subject: sshd on windows Hi, Does anyone know if there is a cygwin.dll free ssh server for windows? Thanks, Jennifer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd on windows
Does anyone know if there is a cygwin.dll free ssh server for windows? Funnily enough, I originally read this as Is there a free ssh server for windows which uses cygwin.dll and then realised my mistake when I saw the first couple of replies. But following the last reply I'm not sure what the OP's intended meaning was. However, it's been answered both ways now - use Cygwin's openssh package, or else it's OT for this list. -- Cliff -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
SSHD on Windows 2003 - Win32 error 1053
Greetings all! I have been banging against a problem for the past couple of days and I believe that I've exhausted all resources. The problem in short is: I can't get sshd to run as a service on Windows Server 2003 (Win2K3) The long story is this: I followed all directions as posted in the docs. I used ssh-host-config to do the initial configuration. Prerequisits that were performed: - I am a local admin - The machine is on a domain, so I mkpassword -l -d ... and mkgroup -l -d ... for the environment beforehand - I ensured the machine had the latest patches (for Windows) - Ensured the the mount points for Cygwin were added under LOCAL_MACHINE (I chose all users during setup) Actions followed: - Ran configuration app (ssh-host-config) - Options chosen were all yes - CYGWIN variables tried: ntsec tty (based on some reference found on the net) - Both the sshd and sshd_server accounts were created, sshd being disabled and sshd_server I enabled 'password does not expire' flag At that time, I confirmed the service was created, which is was. I then tried to start it. The error I got was: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1053: The service did not respond to the start or control request in a timely fashion. So, as a test, I used Windows' runas feature to log in as 'sshd_server'. (I did have to enable 'log on locally' for this account in the local policies. - I performed runas user:dcesap08\sshd_server c:\cygwin\cygwin.bat, which worked. - At the prompt, I ran /usr/sbin/sshd -D. It worked! - I tested the server and was able to connect and authenticate! - I also tried /usr/sbin/sshd. That worked, too! Some other things I've looked at: - CYGWIN env variable has been used as system wide environment var as well as with cygrunsrv -I ... - I have installed the service manually with cygrunsrv, still no difference. - I have used NT File Monitor for looking for file permission issues; none were found. - NT Registry Monitor also showed nothing interesting. - Ensured the 'sshd_server' user was added to the various policies: 'Run as service', 'Create token', 'Act as part of the OS'.. Many of these were already set, but I was just making sure. So, here I stand. A very functional Cygwin install, a new server, and a bottle of frustration. If anyone has any pointers to a solution, then please let me know! In the meantime, I think I might just log in and manually run the server using 'runas'. We need this to work. Best regards! -- Sean F. Aitken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: SSHD on Windows 2003 - Win32 error 1053
Have you looked at the archives? Look at http://sources.redhat.com/ml/cygwin/2004-11/msg00248.html and the preceding messages in the same thread!, Walter * Aitken, Sean [EMAIL PROTECTED] [050113 16:19]: Greetings all! I have been banging against a problem for the past couple of days and I believe that I've exhausted all resources. The problem in short is: I can't get sshd to run as a service on Windows Server 2003 (Win2K3) The long story is this: I followed all directions as posted in the docs. I used ssh-host-config to do the initial configuration. Prerequisits that were performed: - I am a local admin - The machine is on a domain, so I mkpassword -l -d ... and mkgroup -l -d ... for the environment beforehand - I ensured the machine had the latest patches (for Windows) - Ensured the the mount points for Cygwin were added under LOCAL_MACHINE (I chose all users during setup) Actions followed: - Ran configuration app (ssh-host-config) - Options chosen were all yes - CYGWIN variables tried: ntsec tty (based on some reference found on the net) - Both the sshd and sshd_server accounts were created, sshd being disabled and sshd_server I enabled 'password does not expire' flag At that time, I confirmed the service was created, which is was. I then tried to start it. The error I got was: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1053: The service did not respond to the start or control request in a timely fashion. So, as a test, I used Windows' runas feature to log in as 'sshd_server'. (I did have to enable 'log on locally' for this account in the local policies. - I performed runas user:dcesap08\sshd_server c:\cygwin\cygwin.bat, which worked. - At the prompt, I ran /usr/sbin/sshd -D. It worked! - I tested the server and was able to connect and authenticate! - I also tried /usr/sbin/sshd. That worked, too! Some other things I've looked at: - CYGWIN env variable has been used as system wide environment var as well as with cygrunsrv -I ... - I have installed the service manually with cygrunsrv, still no difference. - I have used NT File Monitor for looking for file permission issues; none were found. - NT Registry Monitor also showed nothing interesting. - Ensured the 'sshd_server' user was added to the various policies: 'Run as service', 'Create token', 'Act as part of the OS'.. Many of these were already set, but I was just making sure. So, here I stand. A very functional Cygwin install, a new server, and a bottle of frustration. If anyone has any pointers to a solution, then please let me know! In the meantime, I think I might just log in and manually run the server using 'runas'. We need this to work. Best regards! -- Sean F. Aitken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Walter Garcia-Fontes Barcelona -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
Thanks Bill, your suggestion did the trick. It wouldn't be a bad idea to remind at /usr/share/doc/Cygwin/openssh.README that sshd only works if cygwin is installed for all users (which is obvious, though) That's what I did to fix it *delete the sshd_server *remove the NT service with cygrunsrv --remove sshd *Run the cygwin setup just changing Just Me to All Users *rerun ssh-host-config best regards William R. Knox wrote: A usual question (sent strictly to you as I'm not sure if it is at all relevant) - did you install Cygwin for All Users or for yourself only? If you installed only for yourself, try reinstalling for All Users and see if this clears it up (no guarantees here, so don't do anything that would cause a lot of hassle for yourself based on my word alone). Good luck, and feel free to forward this message to the list if this solves it for you and you want to share the solution. Bill Knox Lead Operating Systems Programmer/Analyst The MITRE Corporation On Thu, 9 Dec 2004, daniel wrote: Date: Thu, 09 Dec 2004 15:36:59 +0100 From: daniel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: sshd in Windows 2003 server Thanks, I actually executed ssh-host-config and chose to create the NT service and both the sshd and sshd_server users. Everything looks exactly the same as in my WinXP succesful installation. However, on my Win2003, when I run cygrunsrv.exe --start sshd, I always get immediately the 1053 error. The cygrunsrv process stays running, but the NT service appears for ever as starting. At the Windows Event Viewer, I can only see The CYGWIN sshd service was successfully sent a start control., but nothing else. No file /var/log/sshd.log is not created. Is there anything else I can check? best regards // * /From/: Harig, Mark * /To/: cygwin at cygwin dot com * /Date/: Thu, 2 Dec 2004 10:30:22 -0500 * /Subject/: RE: sshd in Windows 2003 server Using 'openssh-host-config' is the only documented, supported approach to setting up a Cygwin openssh server. If you follow instructions from other locations, then you need to ask for assistance at those locations. The documentation for the Cygwin-specific openssh setup begins in /usr/share/doc/Cygwin/openssh.README. -Original Message- From: daniel Sent: Thursday, December 02, 2004 6:32 AM To: [EMAIL PROTECTED] Subject: sshd in Windows 2003 server Hi, I've installed sshd succesfully a couple of time on WinXP machines following the instructions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html. However, I didn' manage on a Windows 2003 server. I always get 1053 did not start in a timely fashion immediately on clicking on the Windows service start button. I tried with both enabling and disabling the privilege separation. I don't think I have to follow the instructions at http://www.cygwin.com/ml/cygwin/2003-09/msg00977.html, since my cygwin version (cygwin DLL version: 1.5.12) already creates a ssd_server user with the privileges mentioned there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
The shortcut for all of that process is to run the below: mount -f -s -b DOS path to Cygwin installation directory/bin /usr/bin mount -f -s -b DOS path to Cygwin installation directory/lib /usr/lib mount -f -s -b DOS path to Cygwin installation directory / FWIW, following the reporting guidelines at http://cygwin.com/problems.html would have given the list this information in your initial post. In other words, there's good stuff at this page. :-) But as you can see, there is more than one way to a solution. :-) Larry At 12:05 PM 12/10/2004, you wrote: Thanks Bill, your suggestion did the trick. It wouldn't be a bad idea to remind at /usr/share/doc/Cygwin/openssh.README that sshd only works if cygwin is installed for all users (which is obvious, though) That's what I did to fix it *delete the sshd_server *remove the NT service with cygrunsrv --remove sshd *Run the cygwin setup just changing Just Me to All Users *rerun ssh-host-config best regards William R. Knox wrote: A usual question (sent strictly to you as I'm not sure if it is at all relevant) - did you install Cygwin for All Users or for yourself only? If you installed only for yourself, try reinstalling for All Users and see if this clears it up (no guarantees here, so don't do anything that would cause a lot of hassle for yourself based on my word alone). Good luck, and feel free to forward this message to the list if this solves it for you and you want to share the solution. Bill Knox Lead Operating Systems Programmer/Analyst The MITRE Corporation On Thu, 9 Dec 2004, daniel wrote: Date: Thu, 09 Dec 2004 15:36:59 +0100 From: daniel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: sshd in Windows 2003 server Thanks, I actually executed ssh-host-config and chose to create the NT service and both the sshd and sshd_server users. Everything looks exactly the same as in my WinXP succesful installation. However, on my Win2003, when I run cygrunsrv.exe --start sshd, I always get immediately the 1053 error. The cygrunsrv process stays running, but the NT service appears for ever as starting. At the Windows Event Viewer, I can only see The CYGWIN sshd service was successfully sent a start control., but nothing else. No file /var/log/sshd.log is not created. Is there anything else I can check? best regards // * /From/: Harig, Mark * /To/: cygwin at cygwin dot com * /Date/: Thu, 2 Dec 2004 10:30:22 -0500 * /Subject/: RE: sshd in Windows 2003 server Using 'openssh-host-config' is the only documented, supported approach to setting up a Cygwin openssh server. If you follow instructions from other locations, then you need to ask for assistance at those locations. The documentation for the Cygwin-specific openssh setup begins in /usr/share/doc/Cygwin/openssh.README. -Original Message- From: daniel Sent: Thursday, December 02, 2004 6:32 AM To: [EMAIL PROTECTED] Subject: sshd in Windows 2003 server Hi, I've installed sshd succesfully a couple of time on WinXP machines following the instructions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html. However, I didn' manage on a Windows 2003 server. I always get 1053 did not start in a timely fashion immediately on clicking on the Windows service start button. I tried with both enabling and disabling the privilege separation. I don't think I have to follow the instructions at http://www.cygwin.com/ml/cygwin/2003-09/msg00977.html, since my cygwin version (cygwin DLL version: 1.5.12) already creates a ssd_server user with the privileges mentioned there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
Larry Hall wrote: The shortcut for all of that process is to run the below: mount -f -s -b DOS path to Cygwin installation directory/bin /usr/bin mount -f -s -b DOS path to Cygwin installation directory/lib /usr/lib mount -f -s -b DOS path to Cygwin installation directory / FWIW, following the reporting guidelines at http://cygwin.com/problems.html would have given the list this information in your initial post. In other words, there's good stuff at this page. :-) hmm... what if there was a simple shell script added to base-files, such as mksysmounts (and corresponding mkusermounts too I suppose) that would change any system mounts to user mounts, and vice versa. (Or perhaps a single script with several options.) Then the response to I installed 'For me only' would be just run mksysmounts instead of reinstall or modify these paths as appropriate and run these commands. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
On Fri, 10 Dec 2004, Brian Dessent wrote: Larry Hall wrote: The shortcut for all of that process is to run the below: mount -f -s -b DOS path to Cygwin installation directory/bin /usr/bin mount -f -s -b DOS path to Cygwin installation directory/lib /usr/lib mount -f -s -b DOS path to Cygwin installation directory / FWIW, following the reporting guidelines at http://cygwin.com/problems.html would have given the list this information in your initial post. In other words, there's good stuff at this page. :-) hmm... what if there was a simple shell script added to base-files, such as mksysmounts (and corresponding mkusermounts too I suppose) that would change any system mounts to user mounts, and vice versa. (Or perhaps a single script with several options.) Then the response to I installed 'For me only' would be just run mksysmounts instead of reinstall or modify these paths as appropriate and run these commands. Good idea. I'd call the scripts remount_as_system and remount_as_user or something... And I would also use the eval `mount -m | sed ...` trick that I posted earlier, instead of hard-coding the paths into the scripts. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
At 01:10 PM 12/10/2004, you wrote: On Fri, Dec 10, 2004 at 12:40:37PM -0500, Larry Hall wrote: At 12:34 PM 12/10/2004, you wrote: On Fri, 10 Dec 2004, Brian Dessent wrote: Larry Hall wrote: The shortcut for all of that process is to run the below: mount -f -s -b DOS path to Cygwin installation directory/bin /usr/bin mount -f -s -b DOS path to Cygwin installation directory/lib /usr/lib mount -f -s -b DOS path to Cygwin installation directory / FWIW, following the reporting guidelines at http://cygwin.com/problems.html would have given the list this information in your initial post. In other words, there's good stuff at this page. :-) hmm... what if there was a simple shell script added to base-files, such as mksysmounts (and corresponding mkusermounts too I suppose) that would change any system mounts to user mounts, and vice versa. (Or perhaps a single script with several options.) Then the response to I installed 'For me only' would be just run mksysmounts instead of reinstall or modify these paths as appropriate and run these commands. Good idea. I'd call the scripts remount_as_system and remount_as_user or something... And I would also use the eval `mount -m | sed ...` trick that I posted earlier, instead of hard-coding the paths into the scripts. I have no problem with this but if we're offering suggestions on how to fix the actual problem, then I'd go to the source and change the install scripts or maybe even 'cygrunsrv' to provide a warning and/or 'fix'. That should reduce the number of people having problems running service to only those that don't have permission to do so, in which case we can't help them anyway. Maybe we should just get rid of the install as user option and only use it when absolutely necessary. Then issue a warning at that point. Yeah, I'd agree that it's unclear to current users what the implication is for installing as Just for Me so I don't think it should be a user selected option. So I think your suggestion is a step in the right direction. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
At 12:34 PM 12/10/2004, you wrote: On Fri, 10 Dec 2004, Brian Dessent wrote: Larry Hall wrote: The shortcut for all of that process is to run the below: mount -f -s -b DOS path to Cygwin installation directory/bin /usr/bin mount -f -s -b DOS path to Cygwin installation directory/lib /usr/lib mount -f -s -b DOS path to Cygwin installation directory / FWIW, following the reporting guidelines at http://cygwin.com/problems.html would have given the list this information in your initial post. In other words, there's good stuff at this page. :-) hmm... what if there was a simple shell script added to base-files, such as mksysmounts (and corresponding mkusermounts too I suppose) that would change any system mounts to user mounts, and vice versa. (Or perhaps a single script with several options.) Then the response to I installed 'For me only' would be just run mksysmounts instead of reinstall or modify these paths as appropriate and run these commands. Good idea. I'd call the scripts remount_as_system and remount_as_user or something... And I would also use the eval `mount -m | sed ...` trick that I posted earlier, instead of hard-coding the paths into the scripts. I have no problem with this but if we're offering suggestions on how to fix the actual problem, then I'd go to the source and change the install scripts or maybe even 'cygrunsrv' to provide a warning and/or 'fix'. That should reduce the number of people having problems running service to only those that don't have permission to do so, in which case we can't help them anyway. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
On Fri, Dec 10, 2004 at 12:40:37PM -0500, Larry Hall wrote: At 12:34 PM 12/10/2004, you wrote: On Fri, 10 Dec 2004, Brian Dessent wrote: Larry Hall wrote: The shortcut for all of that process is to run the below: mount -f -s -b DOS path to Cygwin installation directory/bin /usr/bin mount -f -s -b DOS path to Cygwin installation directory/lib /usr/lib mount -f -s -b DOS path to Cygwin installation directory / FWIW, following the reporting guidelines at http://cygwin.com/problems.html would have given the list this information in your initial post. In other words, there's good stuff at this page. :-) hmm... what if there was a simple shell script added to base-files, such as mksysmounts (and corresponding mkusermounts too I suppose) that would change any system mounts to user mounts, and vice versa. (Or perhaps a single script with several options.) Then the response to I installed 'For me only' would be just run mksysmounts instead of reinstall or modify these paths as appropriate and run these commands. Good idea. I'd call the scripts remount_as_system and remount_as_user or something... And I would also use the eval `mount -m | sed ...` trick that I posted earlier, instead of hard-coding the paths into the scripts. I have no problem with this but if we're offering suggestions on how to fix the actual problem, then I'd go to the source and change the install scripts or maybe even 'cygrunsrv' to provide a warning and/or 'fix'. That should reduce the number of people having problems running service to only those that don't have permission to do so, in which case we can't help them anyway. Maybe we should just get rid of the install as user option and only use it when absolutely necessary. Then issue a warning at that point. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: sshd in Windows 2003 server
Thanks, I actually executed ssh-host-config and chose to create the NT service and both the sshd and sshd_server users. Everything looks exactly the same as in my WinXP succesful installation. However, on my Win2003, when I run cygrunsrv.exe --start sshd, I always get immediately the 1053 error. The cygrunsrv process stays running, but the NT service appears for ever as starting. At the Windows Event Viewer, I can only see The CYGWIN sshd service was successfully sent a start control., but nothing else. No file /var/log/sshd.log is not created. Is there anything else I can check? best regards // * /From/: Harig, Mark * /To/: cygwin at cygwin dot com * /Date/: Thu, 2 Dec 2004 10:30:22 -0500 * /Subject/: RE: sshd in Windows 2003 server Using 'openssh-host-config' is the only documented, supported approach to setting up a Cygwin openssh server. If you follow instructions from other locations, then you need to ask for assistance at those locations. The documentation for the Cygwin-specific openssh setup begins in /usr/share/doc/Cygwin/openssh.README. -Original Message- From: daniel Sent: Thursday, December 02, 2004 6:32 AM To: [EMAIL PROTECTED] Subject: sshd in Windows 2003 server Hi, I've installed sshd succesfully a couple of time on WinXP machines following the instructions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html. However, I didn' manage on a Windows 2003 server. I always get 1053 did not start in a timely fashion immediately on clicking on the Windows service start button. I tried with both enabling and disabling the privilege separation. I don't think I have to follow the instructions at http://www.cygwin.com/ml/cygwin/2003-09/msg00977.html, since my cygwin version (cygwin DLL version: 1.5.12) already creates a ssd_server user with the privileges mentioned there. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
sshd in Windows 2003 server
Hi, I've installed sshd succesfully a couple of time on WinXP machines following the instructions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html. However, I didn' manage on a Windows 2003 server. I always get 1053 did not start in a timely fashion immediately on clicking on the Windows service start button. I tried with both enabling and disabling the privilege separation. I don't think I have to follow the instructions at http://www.cygwin.com/ml/cygwin/2003-09/msg00977.html, since my cygwin version (cygwin DLL version: 1.5.12) already creates a ssd_server user with the privileges mentioned there. what can I do? I attach my cygcheck.out file thanks Cygwin Configuration Diagnostics Current System Time: Thu Dec 02 12:15:49 2004 Windows .NET Server Ver 5.2 Build 3790 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\OraHome_3\jre\1.4.2\bin\client c:\OraHome_3\jre\1.4.2\bin c:\OraHome1\jre\1.4.2\bin\client c:\OraHome1\jre\1.4.2\bin c:\OraHome1\bin c:\Program Files\Oracle\jre\1.3.1\bin c:\Program Files\Oracle\jre\1.1.8\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem C:\cygwin\bin Output from C:\cygwin\bin\id.exe (nontsec) UID: 1004(myuser) GID: 513(None) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1004(myuser) GID: 513(None) 0(root) 513(None)544(Administrators) 545(Users) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS CYGWIN = `ntsec tty' HOME = `C:\cygwin\home\myuser' MAKE_MODE = `unix' PWD = `/home/myuser' USER = `myuser' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\myuser\Application Data' CLUSTERLOG = `C:\WINDOWS\Cluster\cluster.log' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `MORIA' COMSPEC = `C:\WINDOWS\system32\cmd.exe' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\myuser' HOSTNAME = `moria' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' JAVA_HOME = `C:\j2sdk1.4.2' JSERV = `c:\OraHome1/Apache/Jserv/conf' LOGONSERVER = `\\MORIA' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PNYX_HOME = `c:\pnyx' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 4, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0204' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SESSIONNAME = `Console' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINDOWS' TEMP = `C:\DOCUME~1\myuser\LOCALS~1\Temp' TERM = `cygwin' TMP = `C:\DOCUME~1\myuser\LOCALS~1\Temp' USERDOMAIN = `MORIA' USERNAME = `myuser' USERPROFILE = `C:\Documents and Settings\myuser' WINDIR = `C:\WINDOWS' WV_GATEWAY_CFG = `c:\OraHome1\Apache\modplsql\cfg\wdbsvr.app' _ = `/usr/bin/cygcheck' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS 18002Mb 39% CP CS UN PA FC d: cd N/AN/A e: hd NTFS 20159Mb 77% CP CS UN PA FC Oracle f: hd NTFS 78167Mb 47% CP CS UN PA FC New Volume1 g: hd NTFS 78159Mb 8% CP CS UN PA FC New Volume C:\cygwin / userbinmode C:\cygwin/bin /usr/bin userbinmode C:\cygwin/lib /usr/lib userbinmode . /cygdrive userbinmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe 55k 2004/09/14
RE: sshd in Windows 2003 server
-Original Message- From: daniel Sent: Thursday, December 02, 2004 6:32 AM To: [EMAIL PROTECTED] Subject: sshd in Windows 2003 server Hi, I've installed sshd succesfully a couple of time on WinXP machines following the instructions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html. However, I didn' manage on a Windows 2003 server. I always get 1053 did not start in a timely fashion immediately on clicking on the Windows service start button. I tried with both enabling and disabling the privilege separation. I don't think I have to follow the instructions at http://www.cygwin.com/ml/cygwin/2003-09/msg00977.html, since my cygwin version (cygwin DLL version: 1.5.12) already creates a ssd_server user with the privileges mentioned there. Using 'openssh-host-config' is the only documented, supported approach to setting up a Cygwin openssh server. If you follow instructions from other locations, then you need to ask for assistance at those locations. The documentation for the Cygwin-specific openssh setup begins in /usr/share/doc/Cygwin/openssh.README. --- (Please do not reply to me, instead keep all replies on this list. Please do not include my email address in any replies.) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problems with sshd on Windows 2003 Server
On May 27 14:40, Tomas Stephanson wrote: Brian Ford wrote: On Wed, 26 May 2004, Tomas Stephanson wrote: just though to let you know that after spending several hours trying to get *ssh* key authorization to work and always getting the sshd : PID 348 : fatal: setreuid 500: Permission denied. message I found a solution, I added the sshd_server user the administrators group and restarted the service. Regards Tomas Did you use ssh-host-config to set up the sshd service? Did you read /usr/share/doc/Cygwin/openssh.README? I ran the ssh-host-config to set up the service, it also set upp the sshd_server account and most of the user-rights objects. But did not att den user to the administrators group. The ssh-host-config script adds the sshd_server user to the local admin group, *iff* the user replies yes to the question Should this script create a new local account 'sshd_server' which has the required privileges? If it fails to do so, you should have gotten a warning like this: WARNING: Adding user sshd_server to local group ${_admingroup} failed! Please add sshd_server to local group ${_admingroup} before starting the sshd service! If you have already created an account sshd_server prior to running the ssh-host-config script, then you're out of luck. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problems with sshd on Windows 2003 Server
Brian Ford wrote: On Wed, 26 May 2004, Tomas Stephanson wrote: just though to let you know that after spending several hours trying to get *ssh* key authorization to work and always getting the sshd : PID 348 : fatal: setreuid 500: Permission denied. message I found a solution, I added the sshd_server user the administrators group and restarted the service. Regards Tomas Did you use ssh-host-config to set up the sshd service? Did you read /usr/share/doc/Cygwin/openssh.README? I ran the ssh-host-config to set up the service, it also set upp the sshd_server account and most of the user-rights objects. But did not att den user to the administrators group. I did not read the openssh.Readme file, (I looked for it but only found the regular ssh documentation next time I know to look inte the Cygwin directory) Regards Tomas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Problems with sshd on Windows 2003 Server
just though to let you know that after spending several hours trying to get *ssh* key authorization to work and always getting the sshd : PID 348 : fatal: setreuid 500: Permission denied. message I found a solution, I added the sshd_server user the administrators group and restarted the service. Regards Tomas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Problems with sshd on Windows 2003 Server
On Wed, 26 May 2004, Tomas Stephanson wrote: just though to let you know that after spending several hours trying to get *ssh* key authorization to work and always getting the sshd : PID 348 : fatal: setreuid 500: Permission denied. message I found a solution, I added the sshd_server user the administrators group and restarted the service. Regards Tomas Did you use ssh-host-config to set up the sshd service? Did you read /usr/share/doc/Cygwin/openssh.README? -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
[SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter
Hello there I used to have cygwin sshd running on my old Windows 2000 Domain Controller, worked like a charm. Some time ago I switched (reinstalled, actually) my domain controller to Windows Server 2003. I went through the usual steps: download, ssh-host-config -y, security model ntsec and installed it as a service. First, it worked for about 5 minutes. Then, when I tried to connect from a remote host, I got a network connection error. The server isn't accepting connections any more. Restarting the sshd service in windows results in: The CYGWIN sshd service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service. Needless to say, I don't think the sshd has nothing to do ... The windows event log has a bit more informations: sshd : PID 5648: socket: Operation not permitted. sshd : PID 5648: fatal: Cannot bind any address.. sshd : PID 3508: starting service 'sshd' failed: execv: 255, error 255 sshd : PID 3508: 'sshd' service stopped. /var/log/sshd.log shows: c:\cygwin\usr\sbin\sshd.exe: *** could not load user32, Win32 error 0 This is the only entry in this file, regardless of how many times I try to restart the service. Thanks for your help Fermin Information about my system: Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Sep 04 16:47:42 2003 Windows .NET Enterprise Server Ver 5.2 Build 3790 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\Program Files\Support Tools\ c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Resource Kit\ c:\Program Files\Microsoft SQL Server\80\Tools\BINN Output from C:\cygwin\bin\id.exe (nontsec) UID: 500(Administrator) GID: 513(Domain Users) 513(Domain Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 500(Administrator) GID: 513(Domain Users) 513(Domain Users) 544(Administrators) 554(Pre-Windows 2000 Compatible Access) 545(Users) 10513(mkgroup_l_d) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS HOME = `C:\cygwin\home\Administrator' MAKE_MODE = `unix' PWD = `/var/log' USER = `Administrator' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS4086Mb 88% CP CS UN PA FC d: hd NTFS 40954Mb 50% CP CS UN PA FC Data y: hd HGFS3906Mb 10% CP SHARED FOLDERS z: cd N/AN/A C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe 61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll 849k 2003/08/11 C:\cygwin\bin\cygcrypto-0.9.7.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 48k 2003/08/09 C:\cygwin\bin\cygform7.dll 28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll 30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll 15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll 15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll 69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll 12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll 134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
Re: [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter
[what's all the crap in the subject?] On Thu, Sep 04, 2003 at 04:56:46PM +0200, Fermin Sanchez wrote: I used to have cygwin sshd running on my old Windows 2000 Domain Controller, worked like a charm. Some time ago I switched (reinstalled, actually) my domain controller to Windows Server 2003. I went through the usual steps: download, ssh-host-config -y, security model ntsec and installed it as a service. First, it worked for about 5 minutes. Then, when I tried to connect from a remote host, I got a network connection error. The server isn't accepting connections any more. Restarting the sshd service in windows results in: The CYGWIN sshd service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service. Needless to say, I don't think the sshd has nothing to do ... The windows event log has a bit more informations: sshd : PID 5648: socket: Operation not permitted. sshd : PID 5648: fatal: Cannot bind any address.. sshd : PID 3508: starting service 'sshd' failed: execv: 255, error 255 sshd : PID 3508: 'sshd' service stopped. /var/log/sshd.log shows: c:\cygwin\usr\sbin\sshd.exe: *** could not load user32, Win32 error 0 This is the only entry in this file, regardless of how many times I try to restart the service. Just a hunch but I suspect that if you restart your system things will work differently. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter
On Thu, Sep 04, 2003 at 04:56:46PM +0200, Fermin Sanchez wrote: I used to have cygwin sshd running on my old Windows 2000 Domain Controller, worked like a charm. Some time ago I switched (reinstalled, actually) my domain controller to Windows Server 2003. I went through the usual steps: download, ssh-host-config -y, security model ntsec and installed it as a service. First, it worked for about 5 minutes. Then, when I tried to connect from a remote host, I got a network connection error. The server isn't accepting connections any more. Restarting the sshd service in windows results in: I'm surprised that it worked for 5 minutes. You mean, without trying to connect, don't you? Basically on 2003 the problem is a change of user rights given to the SYSTEM user when running services. Microsoft is trying to close a security hole by removing the CreateTokenPrivilege from all services running under SYSTEM account. Workaround: Create a new account on your machine in the Admin group. Add the CreateTokenPrivilege in your Local Security Policy dialog. Run sshd under that account. Don't forget to add this user to /etc/passwd. *DON'T* call this user sshd since that's the user name of an *unprivileged* user running the sshd child when privilege separation is turned on. Hope that is in any way related to your actual problem... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
On Wed, Nov 27, 2002 at 10:59:18PM +0100, [EMAIL PROTECTED] wrote: hi, i want to report a serious bug in the current Cygwin SSH-Deamon implementation at Windows XP. error message (occurs on SSH-Client): Last login: Wed Nov 27 21:43:22 2002 from localhost G:\CygWin\bin\bash.exe: *** could not load wsock32, Win32 error 126 how to reproduce this error: - you need windows XP (tested only on XP Professional, while win2k prof works well) - login with public key authorisation (error occurs imediately, no login possible) - login with password authorisation (works), and open another shell or sftp for this session (tested with the current ssh.com-client) I'm running XP Prof and sshd is running as service under LocalSystem. I have two accounts, one has Admin rights, the other is a simple user account. I'm logging in using public key authentication. I'm unable to reproduce this problem. It works fine for me. I don't have problems with ping or any other application not finding wsock32.dll. What does the system PATH environment variable look like? What does the ACL of ${windir}/system32/wsock32.dll look like? And, just being curious, what is the value of the registry entry HKLM\System\CurrentControlSet\Control\SessionManager\SafeDllSearchMode if available? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Because vague bug reports are all we have. And no-one can reproduce it either. http://sources.redhat.com/ml/cygwin/2002-07/msg01745.html When you investigat that thread you do not find only vague bug reports. I have reported that bug too (so I'm at least No.3 in that game) including a detailed description, the output of cygcheck and sshd debug output and at least 4 subsequent answers to questions and proposes of Corinna and others. The problem (which I reported in July) persists. Meanwhile I have completely reinstalled Cygwin, did try nearly any hint related to SSHD posted on the mailing list but no changes exactly as arBmind has described. Frank-Michael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Corinna Vinschen wrote: ... What does the ACL of ${windir}/system32/wsock32.dll look like? And, just being curious, what is the value of the registry entry HKLM\System\CurrentControlSet\Control\SessionManager\SafeDllSearchMode if available? Corinna $ regtool get /machine/SYSTEM/CurrentControlSet/Control/Session Manager/SafeDllSearchMode Error (2): Das System kann die angegebene Datei nicht finden. moser@PIP /cygdrive/c/WINDOWS/system32 $ getfacl wsock32.dll # file: wsock32.dll # owner: moser # group: Kein user::rwx group::rwx group:Benutzer:r-x mask::rwx other::--- (other::--- - could this be the problem?) Frank-Michael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
On Thu, Nov 28, 2002 at 11:11:36AM +0100, Frank-Michael Moser wrote: Because vague bug reports are all we have. And no-one can reproduce it either. http://sources.redhat.com/ml/cygwin/2002-07/msg01745.html When you investigat that thread you do not find only vague bug reports. I have reported that bug too (so I'm at least No.3 in that game) including a detailed description, the output of cygcheck and sshd debug output and at least 4 subsequent answers to questions and proposes of Corinna and others. The problem (which I reported in July) persists. Meanwhile I have completely reinstalled Cygwin, did try nearly any hint related to SSHD posted on the mailing list but no changes exactly as arBmind has described. In your debug output you've send once, $PATH is set to /bin:/bin. Do you have any explanation how that could happen? Does that still happen? sshd propagates the Windows system environment as is to the user process. Well, plus some extras. However, $PATH is never reduced to something like /bin. Just to prove what I'm saying, the code in sshd creating the child process environment looks like this: #ifdef HAVE_CYGWIN /* * The Windows environment contains some setting which are * important for a running system. They must not be dropped. */ copy_environment(environ, env, envsize); #endif if (!options.use_login) { [...] # ifndef HAVE_CYGWIN /* * There's no standard path on Windows. The path contains * important components pointing to the system directories, * needed for loading shared libraries. So the path better * remains intact here. */ # ifdef SUPERUSER_PATH child_set_env(env, envsize, PATH, s-pw-pw_uid == 0 ? SUPERUSER_PATH : _PATH_STDPATH); # else child_set_env(env, envsize, PATH, _PATH_STDPATH); # endif /* SUPERUSER_PATH */ # endif /* HAVE_CYGWIN */ So PATH should still contain the usual Windows system paths when calling the child process. Which means, there is some point at which PATH is reworked in a way it shouldn't. Two wild guesses: Do you have a user environment file ~/.ssh/environment? Did you copy your authorized_keys file from a U*X machine and does that file contain a custom environment setting for your key? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
On Thu, Nov 28, 2002 at 11:23:43AM +0100, Frank-Michael Moser wrote: Corinna Vinschen wrote: ... What does the ACL of ${windir}/system32/wsock32.dll look like? And, just being curious, what is the value of the registry entry HKLM\System\CurrentControlSet\Control\SessionManager\SafeDllSearchMode if available? Corinna $ regtool get /machine/SYSTEM/CurrentControlSet/Control/Session Manager/SafeDllSearchMode Error (2): Das System kann die angegebene Datei nicht finden. moser@PIP /cygdrive/c/WINDOWS/system32 $ getfacl wsock32.dll # file: wsock32.dll # owner: moser # group: Kein user::rwx group::rwx group:Benutzer:r-x mask::rwx other::--- (other::--- - could this be the problem?) Yes, try to change that. My XP has the following setting: $ getfacl /WINXP/system32/wsock32.dll # file: /WINXP/system32/wsock32.dll # owner: Administrators # group: SYSTEM user::rwx group::rwx group:Users:r-x group:Powerusers:r-x mask::rwx other::--- I wonder how that happened on your machine. It's normal that files under ${windir} are owned by Administrators and group SYSTEM. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Corinna Vinschen wrote: What does the ACL of ${windir}/system32/wsock32.dll look like? On Thu, Nov 28, 2002 at 11:23:43AM +0100, Frank-Michael Moser wrote: moser@PIP /cygdrive/c/WINDOWS/system32 $ getfacl wsock32.dll # file: wsock32.dll # owner: moser # group: Kein user::rwx group::rwx group:Benutzer:r-x mask::rwx other::--- (other::--- - could this be the problem?) Corinna Vinschen [EMAIL PROTECTED] wrote: Yes, try to change that. My XP has the following setting: $ getfacl /WINXP/system32/wsock32.dll # file: /WINXP/system32/wsock32.dll # owner: Administrators # group: SYSTEM user::rwx group::rwx group:Users:r-x group:Powerusers:r-x mask::rwx other::--- I wonder how that happened on your machine. By having ntsec off when running getfacl: max@POMELLO [/cygdrive/c/WINDOWS/system32] $ getfacl wsock32.dll # file: wsock32.dll # owner: max # group: None user::rwx group::r-x other::r-x mask::rwx max@POMELLO [/cygdrive/c/WINDOWS/system32] $ ntsec max@POMELLO [/cygdrive/c/WINDOWS/system32] $ getfacl wsock32.dll # file: wsock32.dll # owner: Administrators # group: SYSTEM user::rwx group::rwx group:Users:r-x group:Power Users:r-x mask::rwx other::--- Where ntsec is an alias launching an ntsec-enabled shell. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Frank-Michael Moser [EMAIL PROTECTED] wrote: Because vague bug reports are all we have. And no-one can reproduce it either. http://sources.redhat.com/ml/cygwin/2002-07/msg01745.html When you investigat that thread you do not find only vague bug reports. I'm sorry, I didn't remember that thread. You did indeed provide pretty much all the debug information it is possible to provide. It's a shame that this problem is so elusive. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Corinna Vinschen wrote: In your debug output you've send once, $PATH is set to /bin:/bin. Do you have any explanation how that could happen? Does that still happen? No. I attached the current debug output. Do you have a user environment file ~/.ssh/environment? No. Did you copy your authorized_keys file from a U*X machine and does that file contain a custom environment setting for your key? And no again. But you always have another idea, that's cool, even if it is a wild guess ;) Frank-Michael Last login: Thu Nov 28 12:38:41 2002 from localhost Fanfare!!! You are successfully logged in to this server!!! debug1: permanently_set_uid: 1005/513 Environment: ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users COMMONPROGRAMFILES=C:\Programme\Gemeinsame Dateien COMPUTERNAME=PIP COMSPEC=C:\WINDOWS\system32\cmd.exe HOME=/home/moser HOMEPATH= NUMBER_OF_PROCESSORS=1 OS=Windows_NT PATH=/cygdrive/c/Programme/system:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Programme/Network Associates/PGPcmdln:/bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 4, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0204 PROGRAMFILES=C:\Programme SYSTEMDRIVE=C: SYSTEMROOT=C:\WINDOWS TEMP=/cygdrive/c/WINDOWS/TEMP TERM=rxvt-cygwin-native TMP=/cygdrive/c/WINDOWS/TEMP USERDOMAIN=NT-AUTORITÄT USERNAME=SYSTEM USERPROFILE=C:\Dokumente und Einstellungen\LocalService WINDIR=C:\WINDOWS TZ= -1 -2,M3.5.0/2,M10.5.0/3 USER=moser LOGNAME=moser MAIL=/var/spool/mail/moser SHELL=/bin/bash SSH_CLIENT=127.0.0.1 1193 22 SSH_CONNECTION=127.0.0.1 1193 127.0.0.1 22 SSH_TTY=/dev/tty1 C:\cygwin\bin\bash.exe: *** could not load wsock32, Win32 error 126 Connection to localhost closed. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Corinna Vinschen wrote: $ getfacl wsock32.dll # file: wsock32.dll # owner: moser # group: Kein user::rwx group::rwx group:Benutzer:r-x mask::rwx other::--- (other::--- - could this be the problem?) ... I wonder how that happened on your machine. It's normal that files under ${windir} are owned by Administrators and group SYSTEM. Sorry but unfortunately I sent you the getfacl output with CYGWIN=nontsec (This is because I have problems removing CVS locks from a local repository on a Samba share.) Here is the output with ntsec: moser@PIP /cygdrive/c/WINDOWS/system32 $ getfacl wsock32.dll # file: wsock32.dll # owner: Administratoren # group: SYSTEM user::rwx group::rwx group:Benutzer:r-x mask::rwx other::--- -- DECODON GmbHphone: +49(0)3834 515231 W.-Rathenau-Str. 49a fax: +49(0)3834 515239 17489 Greifswaldemail: [EMAIL PROTECTED] Germany web: www.decodon.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Frank-Michael Moser [EMAIL PROTECTED] wrote: C:\cygwin\bin\bash.exe: *** could not load wsock32, Win32 error 126 Try: CYGWIN=ntsec getfacl /cygdrive/c/WINDOWS/system32/wsock32.dll CYGWIN=ntsec getfacl /cygdrive/c/WINDOWS/system32/ws2_32.dll Who knows, it might help find the problem. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Bug in Cygwin SSHD on windows XP
Max Bowsher wrote: It's a shame that this problem is so elusive. No problem, Max, Frank-Michael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/