Re: Problems starting sshd as a service on cygwin 1.7.3
On one machine sshd startup still fails with a QueryServiceStatus: Win32 error 1062: even after upgrading to cygwin 1.7.5-1. If it fails the log file \var\log\sshd.log is not created. If I run the script below I can get sshd to start. I've tried this with symantec firewall off/on - no difference. #!/bin/bash set -x cygrunsrv -S sshd until [ 0 == $? ] ; do sleep 1 ; cygrunsrv -S sshd ; done cygrunsrv -V -Q sshd How can I trace this issue ? imaging away / flick - Original Message From: Myron Flickner flick...@yahoo.com To: cygwin@cygwin.com Sent: Tue, January 26, 2010 3:40:31 PM Subject: Re: Problems starting sshd as a service on cygwin 1.7.1 Problem remains - If I repeat the cgyrunsrv -S sshd command eventually it works. Disabling Symantec Client Firewall didn't fix this. I've attached the cygcheck.out file.Is there any other tracing I can do ? imaging away / flick -- 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: Problems starting sshd as a service on cygwin 1.7.3
On 4/19/2010 12:57 PM, Myron Flickner wrote: On one machine sshd startup still fails with a QueryServiceStatus: Win32 error 1062: even after upgrading to cygwin 1.7.5-1. If it fails the log file \var\log\sshd.log is not created. If I run the script below I can get sshd to start. I've tried this with symantec firewall off/on - no difference. #!/bin/bash set -x cygrunsrv -S sshd until [ 0 == $? ] ; do sleep 1 ; cygrunsrv -S sshd ; done cygrunsrv -V -Q sshd How can I trace this issue ? Still sounds like BLODA to me. What else do you have on your system that could be trying to manage/control/protect file access? The fact that you can eventually get it to start suggests there's nothing wrong with the configuration and that it's just a matter of timing. So you have some dependency in your network stack (perhaps) that isn't ready when sshd is starting or something is actively inhibiting a dependency. -- 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? -- 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: Problems starting sshd as a service on cygwin 1.7.1
Problem remains - If I repeat the cgyrunsrv -S sshd command eventually it works. Disabling Symantec Client Firewall didn't fix this. I've attached the cygcheck.out file.Is there any other tracing I can do ? imaging away / flick cygcheck.out Description: Binary data -- 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: Problems starting sshd as a service on cygwin 1.7.1
On Tue, Jan 26, 2010 at 6:40 PM, Myron Flickner flick...@. wrote: Problem remains - If I repeat the cgyrunsrv -S sshd command eventually it works. Disabling Symantec Client Firewall didn't fix this. I've attached the cygcheck.out file. Is there any other tracing I can do ? imaging away / flick Hello! While the experts are sorting out your file, I have one comment and one or two questions. First the comment, check the spelling on that one, it isn't cgyrunsrv -S sshd, it happens to be cygrunsrv -S sshd. And now the questions, How did you originally install the service for ssh? And what were those steps? I have followed the majority of the ones listed in the rather well written Users Guide, and it doesn't want to install. Incidentally I have obscured the address of the correspondent here, and am now doing so on other lists that are searchable via the usual methods. -- - Gregg C Levine gregg.drw...@gmail.com This signature was once found posting rude messages in English in the Moscow subway. -- 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: Problems starting sshd as a service on cygwin 1.7.1
Thanks for catching the typeo - it's cygrunsrv. sshd was installed as I outlined in the original posting. http://cygwin.com/ml/cygwin/2010-01/msg00893.html imaging away / flick - Original Message From: Gregg Levine gregg.drw...@gmail.com To: cygwin@cygwin.com Sent: Tue, January 26, 2010 3:56:41 PM Subject: Re: Problems starting sshd as a service on cygwin 1.7.1 On Tue, Jan 26, 2010 at 6:40 PM, Myron Flickner flick...@. wrote: Problem remains - If I repeat the cgyrunsrv -S sshd command eventually it works. Disabling Symantec Client Firewall didn't fix this. I've attached the cygcheck.out file.Is there any other tracing I can do ? imaging away / flick Hello! While the experts are sorting out your file, I have one comment and one or two questions. First the comment, check the spelling on that one, it isn't cgyrunsrv -S sshd, it happens to be cygrunsrv -S sshd. And now the questions, How did you originally install the service for ssh? And what were those steps? I have followed the majority of the ones listed in the rather well written Users Guide, and it doesn't want to install. Incidentally I have obscured the address of the correspondent here, and am now doing so on other lists that are searchable via the usual methods. -- - Gregg C Levine gregg.drw...@gmail.com This signature was once found posting rude messages in English in the Moscow subway. -- 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: Problems starting sshd as a service on cygwin 1.7.1
Yes I looked for the logs - the /var/logs/sshd.log file is 0 length. Is there another log somewhere ? I'll explore if this is something the Symantec Client Firewall is causing. imaging away / flick -- 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
Problems starting sshd as a service on cygwin 1.7.1
On one of my upgraded 1.7.1 system sshd quit running as a service and would not restart. I tried a few things but never could make it work so I decided to reinstall. I uninstalled cygwin per the FAQ and a posting on removing sshd http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all http://chinese-watercolor.com/LRP/printsrv/remove-cygwin.html I reinstalled cygwin choosing defaults options. Then I added openssh to this install. Ran ssh-host-config answered all the questions yes and set CYGWIN to tty ntsec. After this cygrunsrv -S sshd fails. most of the time - although I've seen it work a few times. An example session is below. Any suggestions on a work around or how to trace this ? [fl...@flick-t42]/var/log524cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [fl...@flick-t42]/var/log525cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [fl...@flick-t42]/var/log526cygrunsrv -V -Q sshd Service : sshd Display name: CYGWIN sshd Current State : Stopped Command : /usr/sbin/sshd -D stdin path : /dev/null stdout path : /var/log/sshd.log stderr path : /var/log/sshd.log Environment : CYGWIN=tty ntsec Process Type: Own Process Startup : Automatic Dependencies: tcpip Account : LocalSystem [fl...@flick-t42]/var/log527cygrunsrv -S sshd [fl...@flick-t42]/var/log528cygrunsrv -E sshd [fl...@flick-t42]/var/log529cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [fl...@flick-t42]/var/log530cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [fl...@flick-t42]/var/log531 [fl...@flick-t42]/var/log531cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. [fl...@flick-t42]/var/log532cygrunsrv -V -Q sshd Service : sshd Display name: CYGWIN sshd Current State : Stopped Command : /usr/sbin/sshd -D stdin path : /dev/null stdout path : /var/log/sshd.log stderr path : /var/log/sshd.log Environment : CYGWIN=tty ntsec Process Type: Own Process Startup : Automatic Dependencies: tcpip Account : LocalSystem [fl...@flick-t42]/var/log533cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. imaging away / flick -- 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: Problems starting sshd as a service on cygwin 1.7.1
On 01/21/2010 11:15 PM, Myron Flickner wrote: On one of my upgraded 1.7.1 system sshd quit running as a service and would not restart. I tried a few things but never could make it work so I decided to reinstall. I uninstalled cygwin per the FAQ and a posting on removing sshd http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.uninstall-all http://chinese-watercolor.com/LRP/printsrv/remove-cygwin.html :-( We typically frown on using external sources of Cygwin information and then asking here about problems that could be caused by using information from these sites. In this case, I don't see anything misleading at the site you reference but obviously we can't say that for all time or in general. I reinstalled cygwin choosing defaults options. Then I added openssh to this install. Ran ssh-host-config answered all the questions yes and set CYGWIN to tty ntsec. These aren't necessary, though they aren't harming anything. After this cygrunsrv -S sshd fails. most of the time - although I've seen it work a few times. An example session is below. Any suggestions on a work around or how to trace this ? Have you looked at the logs? Clearly the setup is OK if it starts sometimes. Something is getting in the way. The logs might give you a clue. Or it could be http://cygwin.com/acronyms/#BLODA. If you need to follow-up with this list on this issue, please provide the cygcheck output as requested by http://cygwin.com/problems.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? -- 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: Problems Starting sshd as a service through CYGWIN
Kyle Flavin Kyle.Flavin at warnerbros.com writes: Kyle, I am having the exact same problem. Did you get a resolutions for yours? -- 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 Starting sshd as a service through CYGWIN
Paul Dillard wrote: Kyle Flavin Kyle.Flavin at warnerbros.com writes: Kyle, I am having the exact same problem. Did you get a resolutions for yours? Did you read the thread? http://cygwin.com/ml/cygwin/2007-11/msg00562.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/
Re: error in using cygrunsrv to run sshd as a service
Chen Yue wrote: Hi I have a windows XP host installed with cygwin sshd. Recently, I found I could not run cygrunsrv to start the service. However, I can use /usr/sbin/sshd to start the daemon. How can I debug this issue? Read /usr/share/doc/Cygwin/openssh.README user /bin/ssh-host-config script to install ssh under system services, you must run with admin privileged -- 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/
error in using cygrunsrv to run sshd as a service
Hi I have a windows XP host installed with cygwin sshd. Recently, I found I could not run cygrunsrv to start the service. However, I can use /usr/sbin/sshd to start the daemon. How can I debug this issue? -- 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 Starting sshd as a service through CYGWIN
I am having trouble starting sshd as a Window's service. I've looked over the mailing list archives, but have been unable to find a resolution to my problem. I apologize for the length of this email, but I tried to include all pertinent information. I have attached the output of cygcheck -s -v -r. When I run /usr/sbin/sshd by hand from a CYGWIN terminal, it works. I can remotely access the machine from another computer using SSH. I can successfully install SSHD as a service, but when I try to start the service, it fails. This is true even when I try to start it manually, after my machine has booted. Here's the process I went through after installation of CYGWIN/OpenSSH/OpenSSL: I ran ssh-host-config, and it ran without any errors. When I ran the following, the service failed to start: $ cygrunsrv.exe -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. When I run it like this, I also get an error: $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. Window's Event Viewer shows the service starting, and then almost immediately after, stopping: The CYGWIN sshd service was successfully sent a start control. The CYGWIN sshd service entered the stopped state. The Application log again shows the service stopping for a reason I cannot explain: The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd: PID 4956: `sshd' service stopped, exit status: 57. I get the same error, regardless if I run this from a Cygwin window as the Administrator user, or if I run it from a system-owned console window using Igor's sysbash trick. I attempted to remove the sshd service, and install it manually by doing the following (note that I do use the -D option): $ cygrunsrv.exe --verbose -Q sshd Service : sshd Display name: CYGWIN sshd Current State : Stopped Command : /usr/sbin/sshd -D stdin path : /dev/null stdout path : /var/log/sshd.log stderr path : /var/log/sshd.log Environment : CYGWIN=ntsec tty Process Type: Own Process Startup : Automatic Dependencies: tcpip Account : LocalSystem $ cygrunsrv.exe --remove sshd $ cygrunsrv.exe --install sshd -p /usr/sbin/sshd -a -D -y tcpip -d CYGWIN sshd -f Cygwin SSH services $ cygrunsrv.exe --start sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. $ cygrunsrv.exe --verbose -Q sshd Service : sshd Display name: CYGWIN sshd Description : Cygwin SSH services Current State : Stopped Command : /usr/sbin/sshd -D stdin path : /dev/null stdout path : /var/log/sshd.log stderr path : /var/log/sshd.log Process Type: Own Process Startup : Automatic Dependencies: tcpip Account : LocalSystem The cygserver service appears to be working properly: $ cygrunsrv.exe --verbose -Q cygserver Service : cygserver Display name: CYGWIN cygserver Current State : Running Controls Accepted : Stop Command : /usr/sbin/cygserver stdin path : /dev/null stdout path : /var/log/cygserver.log stderr path : /var/log/cygserver.log Process Type: Own Process Startup : Automatic Account : LocalSystem At this point, I uninstalled Cygwin by deleting the c:\CYGWIN folder and reinstalling. After two reboots, (one after uninstalling, and one after reinstalling) I'm still experiencing the same issues. Here are my system details. My machine is running Windows XP Pro, SP2. For readability, I've included some of the information from cygcheck (attached) here. $ uname -a CYGWIN_NT-5.1 dataop 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin $ cvgcheck -s -v -r | grep -i open openssh 4.7p1-2 openssl 0.9.8g-1 I checked to make sure all my mounts were system, and not user mounts: $ mount -m mount -f -s -b C:/Documents and Settings /home mount -f -s -b C:/cygwin/bin /usr/bin mount -f -s -b C:/cygwin/lib /usr/lib
Re: Problems Starting sshd as a service through CYGWIN
On 11/29/2007, Kyle Flavin wrote: I am having trouble starting sshd as a Window's service. I've looked over the mailing list archives, but have been unable to find a resolution to my problem. I apologize for the length of this email, but I tried to include all pertinent information. I have attached the output of cygcheck -s -v -r. snip You sure you're not just suffering from some form of http://cygwin.com/acronyms/#BLODA? Of some concern is the fact that you have another installation of some like tools including, apparently, 'ssh'. I don't see these interfering based on the information you sent but Also, your attempts to research and solve this problem are admirable and commendable but you may have taken it a little too far. You mentioned that you can 'sshd' from the command line, though you don't mention the user you are when you run it that way. If you didn't do this from a SYSTEM-owned shell the first time you tried it, you may very well have prohibited yourself from getting this to work for you as a service easily. You may want to consider wiping your installation again and reinstalling. The problem is that permissions on some files get set specifically for the user running of 'sshd' and running it as another user isn't an option. Now it is possible to run around to all the needed files/directories and reset the permissions back to what's needed but that's allot of work and is error prone. Also, given the changes you've tried so far relative to granting/restricting certain permissions, this compounds the problem. So there are a few things to mull over. ;-) -- 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: Problems Starting sshd as a service through CYGWIN
I have changed quite a bit. Larry Hall (Cygwin) wrote: On 11/29/2007, Kyle Flavin wrote: I am having trouble starting sshd as a Window's service. I've looked over the mailing list archives, but have been unable to find a resolution to my problem. I apologize for the length of this email, but I tried to include all pertinent information. I have attached the output of cygcheck -s -v -r. snip You sure you're not just suffering from some form of http://cygwin.com/acronyms/#BLODA? Of some concern is the fact that you have another installation of some like tools including, apparently, 'ssh'. I don't see these interfering based on the information you sent but Also, your attempts to research and solve this problem are admirable and commendable but you may have taken it a little too far. You mentioned that you can 'sshd' from the command line, though you don't mention the user you are when you run it that way. If you didn't do this from a SYSTEM-owned shell the first time you tried it, you may very well have prohibited yourself from getting this to work for you as a service easily. You may want to consider wiping your installation again and reinstalling. The problem is that permissions on some files get set specifically for the user running of 'sshd' and running it as another user isn't an option. Now it is possible to run around to all the needed files/directories and reset the permissions back to what's needed but that's allot of work and is error prone. Also, given the changes you've tried so far relative to granting/restricting certain permissions, this compounds the problem. So there are a few things to mull over. ;-) -- 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 Starting sshd as a service through CYGWIN
Whoops, ignore the last email, I accidentally must have hit a send hotkey, because I fired it off before I had finished typing. Sorry. I have changed a lot, so I'll probably go back and start fresh one more time. The first time I ran sshd, I did not run it from a system-owned shell; I ran it as Administrator, so perhaps that has something to do with my problem. I'll give it another try. Thanks for the feedback. Larry Hall (Cygwin) wrote: On 11/29/2007, Kyle Flavin wrote: I am having trouble starting sshd as a Window's service. I've looked over the mailing list archives, but have been unable to find a resolution to my problem. I apologize for the length of this email, but I tried to include all pertinent information. I have attached the output of cygcheck -s -v -r. snip You sure you're not just suffering from some form of http://cygwin.com/acronyms/#BLODA? Of some concern is the fact that you have another installation of some like tools including, apparently, 'ssh'. I don't see these interfering based on the information you sent but Also, your attempts to research and solve this problem are admirable and commendable but you may have taken it a little too far. You mentioned that you can 'sshd' from the command line, though you don't mention the user you are when you run it that way. If you didn't do this from a SYSTEM-owned shell the first time you tried it, you may very well have prohibited yourself from getting this to work for you as a service easily. You may want to consider wiping your installation again and reinstalling. The problem is that permissions on some files get set specifically for the user running of 'sshd' and running it as another user isn't an option. Now it is possible to run around to all the needed files/directories and reset the permissions back to what's needed but that's allot of work and is error prone. Also, given the changes you've tried so far relative to granting/restricting certain permissions, this compounds the problem. So there are a few things to mull over. ;-) -- 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 Starting sshd as a service through CYGWIN
Kyle Flavin wrote: Whoops, ignore the last email, I accidentally must have hit a send hotkey, because I fired it off before I had finished typing. Sorry. I have changed a lot, so I'll probably go back and start fresh one more time. The first time I ran sshd, I did not run it from a system-owned shell; I ran it as Administrator, so perhaps that has something to do with my problem. I'll give it another try. Thanks for the feedback. You're welcome. Hope you're successful. -- 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: sshd exits during login attempt on WinXP 2003 x64 -- even with sshd running as service
Thanks for pointing that out -- I'm really not very conversant with Windows security. While logged in as Administrator, I tried adding sshd_server to the list of users with the Act as part of the operating system privilege (SeTcbPrivilege), but for some reason on my system both the Add User or Group and Remove buttons are greyed-out. Looks like this is a Windows Security configuration issue, not a Cygwin issue; I'll keep trying to resolve it. Thanks for taking time to respond. -Brian Corinna Vinschen wrote: [snip] Looks like the Tcb privilege (Act as part of the operating system) is missing for the sshd_server user. I don't know how to activate output to /var/log/sshd.log -- would that help to diagnose this problem? No. You don't have to activate anything. If output is created, it will go to sshd.log. There's no magic. Corinna -- 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 exits during login attempt on WinXP 2003 x64 -- even with sshd running as service
On Feb 7 13:44, Brian Kasper wrote: Thanks for responding, Corinna. I obviously wasn't clear in my original post -- ssh login attempts to my Win2003 x64 system running Cygwin sshd as a service always fail, which is why I tried running sshd from the command prompt as a test. [...] /var/log/sshd.log remains empty, but a failure audit event appears in my Security event log: Event Type: Failure Audit Event Source: Security Event Category: Privilege Use Event ID: 577 Date: 2/7/2007 Time: 8:26:55 AM User: ABF466\sshd_server Computer: ABF466 Description: Privileged Service Called: Server: NT Local Security Authority / Authentication Service Service:LsaRegisterLogonProcess() Primary User Name: ABF466$ Primary Domain: AERO-ORG Primary Logon ID: (0x0,0x3E7) Client User Name: sshd_server Client Domain: ABF466 Client Logon ID:(0x0,0x14B91291) Privileges: SeTcbPrivilege Looks like the Tcb privilege (Act as part of the operating system) is missing for the sshd_server user. I don't know how to activate output to /var/log/sshd.log -- would that help to diagnose this problem? No. You don't have to activate anything. If output is created, it will go to sshd.log. There's no magic. 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/
Re: sshd exits during login attempt on WinXP 2003 x64 -- even with sshd running as service
Thanks for responding, Corinna. I obviously wasn't clear in my original post -- ssh login attempts to my Win2003 x64 system running Cygwin sshd as a service always fail, which is why I tried running sshd from the command prompt as a test. As far as I know, my Cygwin installation is completely up-to-date. I ran both the ssh-host-config and ssh-user-config scripts after installing Cygwin and configured sshd to run as a service (*without* privilege separation, which [I hope] should keep things simpler). I can start the sshd service using either the Win2003 Services control panel or cygrunsrv. When sshd starts, 4 success audit events appear in the Security event log, and the service appears to start normally. sshd is configured to log on as .\sshd_server, according to the Properties page for the service. If I then start a bash shell on my system and try to ssh localhost, I see the following: ~ 503 $ ssh localhost Connection closed by 127.0.0.1 ~ 504 $ /var/log/sshd.log remains empty, but a failure audit event appears in my Security event log: Event Type: Failure Audit Event Source: Security Event Category: Privilege Use Event ID: 577 Date: 2/7/2007 Time: 8:26:55 AM User: ABF466\sshd_server Computer: ABF466 Description: Privileged Service Called: Server: NT Local Security Authority / Authentication Service Service:LsaRegisterLogonProcess() Primary User Name: ABF466$ Primary Domain: AERO-ORG Primary Logon ID: (0x0,0x3E7) Client User Name: sshd_server Client Domain: ABF466 Client Logon ID:(0x0,0x14B91291) Privileges: SeTcbPrivilege I don't know how to activate output to /var/log/sshd.log -- would that help to diagnose this problem? -Brian Corinna Vinschen wrote: [exerpt of my original post snipped] This won't work. By default, no user has the required permissions to change the user context. Start here: $ less /usr/share/doc/Cygwin/openssh.README and here: http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch and install sshd as service using the ssh-host-config script. Corinna -- 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: error starting sshd as a service
Raymond Blum wrote: $ ls -l /var/log/ total 820 -rw-r--r-- 1 SYSTEMroot 0 Jun 30 23:02 cygserver.log -rw-rw-rw- 1 Administrator None 282348 Jul 1 15:59 lastlog -rwxr-x---+ 1 Administrator Users 683494 Jun 30 20:43 setup.log -rwxr-x---+ 1 Administrator Users 18503 Jun 30 20:43 setup.log.full -rw-rw-rw- 1 sshd_server None 358 Jun 30 23:11 sshd.log The contents of /var/log/sshd.log might be interesting... As well as the output from editrights -l -u sshd_server -- Andrew DeFaria http://defaria.com Don't be accommodating, be honest. I honestly don't have much more time for anything else. -- 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: error starting sshd as a service
On 07/01/2006, Raymond Blum wrote: My Win2003 server sshd stopped working last night, from the time of day I assume that it was an MS Windows update and in hindsight perhaps windows FW had started blocking it and it was reparable but... I decided instead to upgrade my Cygwin installation to the current release (bad move) I have it at the point where I can run sshd as the sshd_server user (/usr/sbin/sshd -D) but when I start it as a service I get the message in the event viewer The sshd service was unable to log on as .\sshd_server with the currently configured password due to the following error: The parameter is incorrect. I tried, against popular advice in the archives, to run as the local system account and turn off privilege separation in sshd_config but while the service started I then got the error seteuid 1003 no such process in the application event log every time I tried to ssh into the machine. So, I abandoned that effort and put it back to running as sshd_server. I have uninstalled, reinstalled, checked the password for the user several times. I have also googled and tried various advice offered on different pages for the last 6 hours. So, I decided that it is time to ask for help. Here is what I have from cygrunsrv $cygrunsrv -L sshd cygserver $cygrunsrv -Q sshd Service : sshd Display name : CYG SSHD Current State : Started Command : /usr/sbin/sshd -D I have no idea what parameter it is that's invalid (or even what command it is a parameter to) - ie a parameter to cygrunsrv or a parameter to sshd. I have the machine running sshd -D from a session logged in as sshd_server but obviously this is not acceptable in the long term. Thanks for reading this far, any advice or ideas? Yes. Please read and follow the problem reporting guidelines found here: Problem reports: http://cygwin.com/problems.html You've told us what the problem is you're having but not much in the way of details of what you have installed or what you did to configure sshd. So I'd suggest starting with the basics back at the beginning. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (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: error starting sshd as a service
On Jul 1, 2006, at 3:40 PM, Larry Hall (Cygwin) wrote: Yes. Please read and follow the problem reporting guidelines found here: Thanks. cygcheck output is attached. In addition, here are the details of my environment and history that are not reported by cygcheck but are relevant. *** I first allowed the script to create the sshd_server account, since then I have modified the group membership of the account to allow interactive logins (so that I could try running the sshd server from the cygwin shell/CLI) ***Re: the configuration of SSHD - I allowed the script to do it, and since then have used cygrunsrv to remove the service and then add it back as follows: cygrunsrv -I sshd -p /usr/sbin/sshd -u sshd_server -e CYGWIN=binmode tty ntsec -t auto it prompted me for a password, which I have verified is the correct one. *** Re: permissions, here are what I believe to be the relevant files $ ls -l /etc/ssh* -rwxr-x--- 1 sshd_server None 1354 Jun 30 23:28 /etc/ssh_config -rw--- 1 sshd_server None 668 Jun 30 20:50 /etc/ssh_host_dsa_key -rw-r--r-- 1 sshd_server None 610 Jun 30 20:50 /etc/ ssh_host_dsa_key.pub -rw--- 1 sshd_server None 983 Jun 30 20:50 /etc/ssh_host_key -rw-r--r-- 1 sshd_server None 647 Jun 30 20:50 /etc/ssh_host_key.pub -rw--- 1 sshd_server None 1675 Jun 30 20:50 /etc/ssh_host_rsa_key -rw-r--r-- 1 sshd_server None 402 Jun 30 20:50 /etc/ ssh_host_rsa_key.pub -rw-r--r-- 1 sshd_server None 2844 Jun 30 23:28 /etc/sshd_config $ ls -l /var/empty/ total 16 -rw-r--r-- 1 sshd_server None 14272 Jul 1 15:51 cygcheck.out $ ls -l /var/log/ total 820 -rw-r--r-- 1 SYSTEMroot 0 Jun 30 23:02 cygserver.log -rw-rw-rw- 1 Administrator None 282348 Jul 1 15:59 lastlog -rwxr-x---+ 1 Administrator Users 683494 Jun 30 20:43 setup.log -rwxr-x---+ 1 Administrator Users 18503 Jun 30 20:43 setup.log.full -rw-rw-rw- 1 sshd_server None 358 Jun 30 23:11 sshd.log ---Raymond cygcheck.out Description: Binary data On 07/01/2006, Raymond Blum wrote: My Win2003 server sshd stopped working last night, from the time of day I assume that it was an MS Windows update and in hindsight perhaps windows FW had started blocking it and it was reparable but... I decided instead to upgrade my Cygwin installation to the current release (bad move) I have it at the point where I can run sshd as the sshd_server user (/usr/sbin/sshd -D) but when I start it as a service I get the message in the event viewer The sshd service was unable to log on as .\sshd_server with the currently configured password due to the following error: The parameter is incorrect. I tried, against popular advice in the archives, to run as the local system account and turn off privilege separation in sshd_config but while the service started I then got the error seteuid 1003 no such process in the application event log every time I tried to ssh into the machine. So, I abandoned that effort and put it back to running as sshd_server. I have uninstalled, reinstalled, checked the password for the user several times. I have also googled and tried various advice offered on different pages for the last 6 hours. So, I decided that it is time to ask for help. Here is what I have from cygrunsrv $cygrunsrv -L sshd cygserver $cygrunsrv -Q sshd Service : sshd Display name : CYG SSHD Current State : Started Command : /usr/sbin/sshd -D I have no idea what parameter it is that's invalid (or even what command it is a parameter to) - ie a parameter to cygrunsrv or a parameter to sshd. I have the machine running sshd -D from a session logged in as sshd_server but obviously this is not acceptable in the long term. Thanks for reading this far, any advice or ideas? Yes. Please read and follow the problem reporting guidelines found here: Problem reports: http://cygwin.com/problems.html You've told us what the problem is you're having but not much in the way of details of what you have installed or what you did to configure sshd. So I'd suggest starting with the basics back at the beginning. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (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/ -- 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: error starting sshd as a service
Sorry, one thing was missing. var/empty itself $ ls -l /var/ total 0 drwxrwx---+ 3 Administrator Users 0 Jun 30 16:11 cache drwxr-xr-x+ 3 sshd_server root 0 Jul 1 15:50 empty ... On Jul 1, 2006, at 4:05 PM, Raymond Blum wrote: On Jul 1, 2006, at 3:40 PM, Larry Hall (Cygwin) wrote: Yes. Please read and follow the problem reporting guidelines found here: Thanks. cygcheck output is attached. In addition, here are the details of my environment and history that are not reported by cygcheck but are relevant. *** I first allowed the script to create the sshd_server account, since then I have modified the group membership of the account to allow interactive logins (so that I could try running the sshd server from the cygwin shell/CLI) ***Re: the configuration of SSHD - I allowed the script to do it, and since then have used cygrunsrv to remove the service and then add it back as follows: cygrunsrv -I sshd -p /usr/sbin/sshd -u sshd_server -e CYGWIN=binmode tty ntsec -t auto it prompted me for a password, which I have verified is the correct one. *** Re: permissions, here are what I believe to be the relevant files $ ls -l /etc/ssh* -rwxr-x--- 1 sshd_server None 1354 Jun 30 23:28 /etc/ssh_config -rw--- 1 sshd_server None 668 Jun 30 20:50 /etc/ssh_host_dsa_key -rw-r--r-- 1 sshd_server None 610 Jun 30 20:50 /etc/ ssh_host_dsa_key.pub -rw--- 1 sshd_server None 983 Jun 30 20:50 /etc/ssh_host_key -rw-r--r-- 1 sshd_server None 647 Jun 30 20:50 /etc/ssh_host_key.pub -rw--- 1 sshd_server None 1675 Jun 30 20:50 /etc/ssh_host_rsa_key -rw-r--r-- 1 sshd_server None 402 Jun 30 20:50 /etc/ ssh_host_rsa_key.pub -rw-r--r-- 1 sshd_server None 2844 Jun 30 23:28 /etc/sshd_config $ ls -l /var/empty/ total 16 -rw-r--r-- 1 sshd_server None 14272 Jul 1 15:51 cygcheck.out $ ls -l /var/log/ total 820 -rw-r--r-- 1 SYSTEMroot 0 Jun 30 23:02 cygserver.log -rw-rw-rw- 1 Administrator None 282348 Jul 1 15:59 lastlog -rwxr-x---+ 1 Administrator Users 683494 Jun 30 20:43 setup.log -rwxr-x---+ 1 Administrator Users 18503 Jun 30 20:43 setup.log.full -rw-rw-rw- 1 sshd_server None 358 Jun 30 23:11 sshd.log ---Raymond cygcheck.out On 07/01/2006, Raymond Blum wrote: My Win2003 server sshd stopped working last night, from the time of day I assume that it was an MS Windows update and in hindsight perhaps windows FW had started blocking it and it was reparable but... I decided instead to upgrade my Cygwin installation to the current release (bad move) I have it at the point where I can run sshd as the sshd_server user (/usr/sbin/sshd -D) but when I start it as a service I get the message in the event viewer The sshd service was unable to log on as .\sshd_server with the currently configured password due to the following error: The parameter is incorrect. I tried, against popular advice in the archives, to run as the local system account and turn off privilege separation in sshd_config but while the service started I then got the error seteuid 1003 no such process in the application event log every time I tried to ssh into the machine. So, I abandoned that effort and put it back to running as sshd_server. I have uninstalled, reinstalled, checked the password for the user several times. I have also googled and tried various advice offered on different pages for the last 6 hours. So, I decided that it is time to ask for help. Here is what I have from cygrunsrv $cygrunsrv -L sshd cygserver $cygrunsrv -Q sshd Service : sshd Display name : CYG SSHD Current State : Started Command : /usr/sbin/sshd -D I have no idea what parameter it is that's invalid (or even what command it is a parameter to) - ie a parameter to cygrunsrv or a parameter to sshd. I have the machine running sshd -D from a session logged in as sshd_server but obviously this is not acceptable in the long term. Thanks for reading this far, any advice or ideas? Yes. Please read and follow the problem reporting guidelines found here: Problem reports: http://cygwin.com/problems.html You've told us what the problem is you're having but not much in the way of details of what you have installed or what you did to configure sshd. So I'd suggest starting with the basics back at the beginning. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (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/ -- 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
error starting sshd as a service
Hi My Win2003 server sshd stopped working last night, from the time of day I assume that it was an MS Windows update and in hindsight perhaps windows FW had started blocking it and it was reparable but... I decided instead to upgrade my Cygwin installation to the current release (bad move) I have it at the point where I can run sshd as the sshd_server user (/usr/sbin/sshd -D) but when I start it as a service I get the message in the event viewer The sshd service was unable to log on as .\sshd_server with the currently configured password due to the following error: The parameter is incorrect. I tried, against popular advice in the archives, to run as the local system account and turn off privilege separation in sshd_config but while the service started I then got the error seteuid 1003 no such process in the application event log every time I tried to ssh into the machine. So, I abandoned that effort and put it back to running as sshd_server. I have uninstalled, reinstalled, checked the password for the user several times. I have also googled and tried various advice offered on different pages for the last 6 hours. So, I decided that it is time to ask for help. Here is what I have from cygrunsrv $cygrunsrv -L sshd cygserver $cygrunsrv -Q sshd Service : sshd Display name : CYG SSHD Current State : Started Command : /usr/sbin/sshd -D I have no idea what parameter it is that's invalid (or even what command it is a parameter to) - ie a parameter to cygrunsrv or a parameter to sshd. I have the machine running sshd -D from a session logged in as sshd_server but obviously this is not acceptable in the long term. Thanks for reading this far, any advice or ideas? ---Raymond -- 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/
Correction to: error starting sshd as a service
Pasted in the wrong cygrunsrv output, sorry, The output in the current state of affairs is $cygrunsrv -Q sshd Service : sshd Display name : CYG SSHD Current State : Stopped Command : /usr/sbin/sshd -D ---Raymond On Jul 1, 2006, at 12:00 AM, Raymond Blum wrote: Hi My Win2003 server sshd stopped working last night, from the time of day I assume that it was an MS Windows update and in hindsight perhaps windows FW had started blocking it and it was reparable but... I decided instead to upgrade my Cygwin installation to the current release (bad move) I have it at the point where I can run sshd as the sshd_server user (/usr/sbin/sshd -D) but when I start it as a service I get the message in the event viewer The sshd service was unable to log on as .\sshd_server with the currently configured password due to the following error: The parameter is incorrect. I tried, against popular advice in the archives, to run as the local system account and turn off privilege separation in sshd_config but while the service started I then got the error seteuid 1003 no such process in the application event log every time I tried to ssh into the machine. So, I abandoned that effort and put it back to running as sshd_server. I have uninstalled, reinstalled, checked the password for the user several times. I have also googled and tried various advice offered on different pages for the last 6 hours. So, I decided that it is time to ask for help. Here is what I have from cygrunsrv $cygrunsrv -L sshd cygserver $cygrunsrv -Q sshd Service : sshd Display name : CYG SSHD Current State : Started Command : /usr/sbin/sshd -D I have no idea what parameter it is that's invalid (or even what command it is a parameter to) - ie a parameter to cygrunsrv or a parameter to sshd. I have the machine running sshd -D from a session logged in as sshd_server but obviously this is not acceptable in the long term. Thanks for reading this far, any advice or ideas? ---Raymond -- 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/
sshd via XP Service vs. sshd init daemon
Cyg-winners: I have a question that the FAQs do not seem to address. It is possible to install sshd as an init daemon (via usr/sbin/chkconfig --add) *and* it is also possible to install sshd as a full-fledged XP service (via /usr/bin/ssh-host-config). QUERY: What are the pros and cons of each method? IMO, I prefer to have less full-fledged services; then it is simpler to start several daemons (e.g., xinetd, sshd, ftpd, ...) via a single 'net start init' or 'cygrunsrv --start init' reducing the number of tasks to perform for a change in state. Am I overlooking potential advantages for running as an independent, full-fledged service? Thanks to all who share the enlightenment! :) Christopher -- 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 via XP Service vs. sshd init daemon
Christopher McIntosh wrote: QUERY: What are the pros and cons of each method? IMO, I prefer to have less full-fledged services; then it is simpler to start several daemons (e.g., xinetd, sshd, ftpd, ...) via a single 'net start init' or 'cygrunsrv --start init' reducing the number of tasks to perform for a change in state. I know that sshd has support for being run from inetd, but it is very old, very inefficient, not very well tested, lacks some features, and is generally frowned upon. Remember that a host key has to be generated each time sshd starts and this can take some time, so doing that for every connection is just silly. In the context of Cygwin, it should work as long as sshd runs as SYSTEM and the permissions on the host keys, config files, /var/empty directory (etc) are correct. And I would not expect to ever have both working at the same time (daemon and inetd) unless you installed a second copy of sshd into a different --prefix that had its own host keys and everything else. I'm not sure why you would ever want this though, or maybe I'm misinterpreting your question. In short, stay away from inetd. That's my advice. Starting and stopping is trivial: for F in sshd cron cygserver; do cygrunsrv -S $F; done. 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: Cygwin sshd started as service doesn't respect mount points
Ok. Problem solved. I had to remove the registry key HKEY_CURRENT_USER\Software\Cygnus Solution\Cygwin\mounts v2\/home/buhl CTB Claus-Thomas Buhl schrieb: I have installed Cygwin sshd as a service and these are the mount points of interest: D:\Programme\cygwin on / type system (binmode) E:\Benutzer\buhl on /home/buhl type system (binmode) Under /home/buhl/.ssh (that is E:\Benutzer\buhl\.ssh), I have setup my .ssh folder with my ssh keys. When I now try to do a `ssh localhost', sshd looks for my ssh keys in D:\Programme\cygwin\home\buhl\.ssh which means that sshd doesn't respect the mount point /home/buhl. I had to copy my .ssh folder from E:\Benutzer\buhl\.ssh to D:\Programme\cygwin\home\buhl\.ssh to make `ssh localhost' work which is obviously redundant and thus not easy to maintain. Regards, CTB -- 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: cygwin sshd started as service doesn't respect mount points
On Thu, Aug 19, 2004 at 07:31:39PM +0200, Claus-Thomas Buhl wrote: Ok. Problem solved. I had to remove the registry key HKEY_CURRENT_USER\Software\Cygnus Solution\Cygwin\mounts v2\/home/buhl JUST USE THE `mount' COMMAND. THAT IS WHAT IT IS THERE FOR. -- 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/
Cygwin sshd started as service doesn't respect mount points
I have installed Cygwin sshd as a service and these are the mount points of interest: D:\Programme\cygwin on / type system (binmode) E:\Benutzer\buhl on /home/buhl type system (binmode) Under /home/buhl/.ssh (that is E:\Benutzer\buhl\.ssh), I have setup my .ssh folder with my ssh keys. When I now try to do a `ssh localhost', sshd looks for my ssh keys in D:\Programme\cygwin\home\buhl\.ssh which means that sshd doesn't respect the mount point /home/buhl. I had to copy my .ssh folder from E:\Benutzer\buhl\.ssh to D:\Programme\cygwin\home\buhl\.ssh to make `ssh localhost' work which is obviously redundant and thus not easy to maintain. Regards, CTB -- 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: Problem starting sshd as a service
Thanks for correcting me Larry (it is you I should thank this time, I hope :-) Erik, sorry for the mis-directed gratitude, I guess I should put my mind in gear before I try and use it. -Original Message- From: Larry Hall [mailto:[EMAIL PROTECTED] Sent: Thursday, August 05, 2004 4:45 PM To: Mike Kenny - BCX - Infrastructure Services; [EMAIL PROTECTED] Subject: RE: Problem starting sshd as a service At 09:43 AM 8/5/2004, you wrote: Thanks Cristopher this looks like a very useful site. Actually, I believe you meant to thank Erik. Chris was simply pointing out that this site isn't officially affiliated with the Cygwin site or project. As such, discussion of (or more importantly questions about) it's contents is OT here. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christopher Faylor Sent: Wednesday, August 04, 2004 3:53 PM To: [EMAIL PROTECTED] http://cygwin.com/acronyms/#PCYMTNQREAIYR Subject: Re: Problem starting sshd as a service On Wed, Aug 04, 2004 at 05:33:51AM -0700, Erik Weibust wrote: Check out this site for very good instructions on setting up sshd via cygwin. http://tech.erdelynet.com/cygwin-sshd.html And, then, if you have further problems with sshd, make sure that you send all of your inquiries there, too... cgf -- 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: Problem starting sshd as a service
Hi! Am Mittwoch, 4. August 2004 14:33 schrieb Erik Weibust: I installed the entire cygwin package for use by everyone. Then, as Administrator, I run $ cygrunsrv -I sshd --path /usr/sbin/sshd $ cygrun -S sshd this results in a Win32 error 1062 starting a service. For me it was necessary to chown /etc/sshd_* and /var/empty to user SYSTEM manually in current Cygwin versions so that sshd would start. I also didn't need to do that in earlier Cygwin versions. -- Bye, Gernot Hillier CT SE 2 Siemens AG, Mch P -- 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: Problem starting sshd as a service
On Aug 5 10:07, Gernot Hillier wrote: Hi! Am Mittwoch, 4. August 2004 14:33 schrieb Erik Weibust: I installed the entire cygwin package for use by everyone. Then, as Administrator, I run $ cygrunsrv -I sshd --path /usr/sbin/sshd $ cygrun -S sshd this results in a Win32 error 1062 starting a service. For me it was necessary to chown /etc/sshd_* and /var/empty to user SYSTEM manually in current Cygwin versions so that sshd would start. I also didn't need to do that in earlier Cygwin versions. That's what the ssh-host-config script is for. 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: Problem starting sshd as a service
Hi! Am Donnerstag, 5. August 2004 10:38 schrieb Corinna Vinschen: For me it was necessary to chown /etc/sshd_* and /var/empty to user SYSTEM manually in current Cygwin versions so that sshd would start. I also didn't need to do that in earlier Cygwin versions. That's what the ssh-host-config script is for. But even if you start the script, it's necessary to do this manually as I wrote above. I saw this on three different installations done from a Cygwin Snapshot taken on Thu Jun 24 10:30:01 CEST 2004. But maybe it's fixed in the meantime... -- Bye, Gernot Hillier CT SE 2 Siemens AG, Mch P -- 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: Problem starting sshd as a service
On Aug 5 10:53, Gernot Hillier wrote: Hi! Am Donnerstag, 5. August 2004 10:38 schrieb Corinna Vinschen: For me it was necessary to chown /etc/sshd_* and /var/empty to user SYSTEM manually in current Cygwin versions so that sshd would start. I also didn't need to do that in earlier Cygwin versions. That's what the ssh-host-config script is for. But even if you start the script, it's necessary to do this manually as I wrote above. I saw this on three different installations done from a Cygwin Snapshot taken on Thu Jun 24 10:30:01 CEST 2004. But maybe it's fixed in the meantime... Have a look into the script, right at the end. chown is only called if sshd has been installed as service. Otherwise the script assumes that sshd is going to be run from some user account in a console window. In that case, chown'ing to system wouldn't make much sense. Perhaps that's the problem. People running the script and decide not to install sshd as service, but change their mind at some later point. 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: Problem starting sshd as a service
Hi! Am Donnerstag, 5. August 2004 10:59 schrieb Corinna Vinschen: Have a look into the script, right at the end. chown is only called if sshd has been installed as service. Otherwise the script assumes that sshd is going to be run from some user account in a console window. In that case, chown'ing to system wouldn't make much sense. Perhaps that's the problem. People running the script and decide not to install sshd as service, but change their mind at some later point. Well, for me it didn't work. Here's exactly what I do after a fresh Cygwin installation to get it running: - setup ssh: - set environment variable CYGWIN to ntsec tty (Control Panel/ System/Advanced/Environmental Variables) - call ssh-host-config -y in a cygwin window -- creates a user sshd - chown SYSTEM /etc/ssh_host_* /var/empty - net start sshd - try to login with ssh localhost So for me it seems as sshd is installed as service but this last check somehow fails. -- Mit freundlichen Grüßen, Gernot Hillier CT SE 2 Siemens AG, Mch P -- 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: Problem starting sshd as a service
On Aug 5 11:11, Gernot Hillier wrote: Am Donnerstag, 5. August 2004 10:59 schrieb Corinna Vinschen: Perhaps that's the problem. People running the script and decide not to install sshd as service, but change their mind at some later point. Well, for me it didn't work. Here's exactly what I do after a fresh Cygwin installation to get it running: - setup ssh: - set environment variable CYGWIN to ntsec tty (Control Panel/ System/Advanced/Environmental Variables) - call ssh-host-config -y in a cygwin window -- creates a user sshd - chown SYSTEM /etc/ssh_host_* /var/empty - net start sshd - try to login with ssh localhost So for me it seems as sshd is installed as service but this last check somehow fails. I'm sorry but that's not exactly helpful. I'd need a proof and at least a debug output of a script run. I'm also wondering sometimes why nobody tries to fix the bug (if there is one) instead of constantly working around it. It's just a shell script. It's not overly complicated, is it? 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: Problem starting sshd as a service
Hi! Am Donnerstag, 5. August 2004 11:24 schrieb Corinna Vinschen: - setup ssh: - set environment variable CYGWIN to ntsec tty (Control Panel/ System/Advanced/Environmental Variables) - call ssh-host-config -y in a cygwin window -- creates a user sshd - chown SYSTEM /etc/ssh_host_* /var/empty - net start sshd - try to login with ssh localhost So for me it seems as sshd is installed as service but this last check somehow fails. I'm sorry but that's not exactly helpful. I'd need a proof and at least a debug output of a script run. I'm also wondering sometimes why nobody tries to fix the bug (if there is one) instead of constantly working around it. It's just a shell script. It's not overly complicated, is it? I'll try to do this as soon as I have something around an hour of spare time. But I can't promise anything, sorry... :-( -- Bye, Gernot Hillier CT SE 2 Siemens AG, Mch P -- 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: Problem starting sshd as a service
Corinna Vinschen wrote: Have a look into the script, right at the end. chown is only called if sshd has been installed as service. Otherwise the script assumes that sshd is going to be run from some user account in a console window. In that case, chown'ing to system wouldn't make much sense. But would it hurt to chown even if sshd is going to be run from some user account in a console window? (Personally I find that assumption odd. Does anybody run sshd from some user account in a console window?) What would happen if things like /var/empty are always set to be owned by SYSTEM? -- If a man says something in the woods and there are no women there, is he still wrong? -- 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: Problem starting sshd as a service
On Thu, Aug 05, 2004 at 03:43:07PM +0200, Mike Kenny - BCX - Infrastructure Services wrote: Thanks Cristopher this looks like a very useful site. Huh? Don't thank me. I didn't provide the URL and I'm not advocating the use of that site in any way. I consider it to be an irritant more than anything else. If there are problems with ssh, then they should be worked out here and eventually rolled back into the ssh release so that anyone who has problems with ssh will benefit. -- 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: Problem starting sshd as a service
On Thu, Aug 05, 2004 at 07:45:25AM -0700, Andrew DeFaria wrote: Corinna Vinschen wrote: Have a look into the script, right at the end. chown is only called if sshd has been installed as service. Otherwise the script assumes that sshd is going to be run from some user account in a console window. In that case, chown'ing to system wouldn't make much sense. But would it hurt to chown even if sshd is going to be run from some user account in a console window? (Personally I find that assumption odd. Does anybody run sshd from some user account in a console window?) Yes. 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: Problem starting sshd as a service
At 09:43 AM 8/5/2004, you wrote: Thanks Cristopher this looks like a very useful site. Actually, I believe you meant to thank Erik. Chris was simply pointing out that this site isn't officially affiliated with the Cygwin site or project. As such, discussion of (or more importantly questions about) it's contents is OT here. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christopher Faylor Sent: Wednesday, August 04, 2004 3:53 PM To: [EMAIL PROTECTED] http://cygwin.com/acronyms/#PCYMTNQREAIYR Subject: Re: Problem starting sshd as a service On Wed, Aug 04, 2004 at 05:33:51AM -0700, Erik Weibust wrote: Check out this site for very good instructions on setting up sshd via cygwin. http://tech.erdelynet.com/cygwin-sshd.html And, then, if you have further problems with sshd, make sure that you send all of your inquiries there, too... cgf -- 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: Problem starting sshd as a service
On Aug 5 07:45, Andrew DeFaria wrote: Corinna Vinschen wrote: Have a look into the script, right at the end. chown is only called if sshd has been installed as service. Otherwise the script assumes that sshd is going to be run from some user account in a console window. In that case, chown'ing to system wouldn't make much sense. But would it hurt to chown even if sshd is going to be run from some user account in a console window? (Personally I find that assumption odd. Does anybody run sshd from some user account in a console window?) Actually, running all process under the same account and having this account owning all files is probably some sort of default. Just starting an sshd in a console window, running under the only account which should be able to log on from remote (using pubkey authentication) is probably the easiest way to get an sshd up and running. And I'm pretty sure there is a non-trivial amount of people running sshd that way. So, while always running chown from ssh-host-config would probably simplify the script, but I don't think that's the way to go. The problem is, that the script works for me(tm) and so I'm still curious what happens on other machines. 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/
Problem starting sshd as a service
I installed the entire cygwin package for use by everyone. Then, as Administrator, I run $ cygrunsrv -I sshd --path /usr/sbin/sshd $ cygrun -S sshd this results in a Win32 error 1062 starting a service. I have done the same thing on other systems in the past without an error. And the logs show nothing useful (event viewer and /var/log/ssh.log) Any ideas anyone? Kind Regards, Mike Kenny Principal Consultant Professional Services Business Connexion (Pty) Ltd Office: +27 (0)11 266 5703 Mobile: +27 (0)83 266 1437 Fax: +27 (0)11 266 5769 Email: [EMAIL PROTECTED] Web Site: www.bcx.co.za NOTICES: 1. This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify the sender at Business Connexion (Pty) Ltd immediately. Any unauthorised use, alteration or dissemination is prohibited. 2. Business Connexion (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. 3. Please note that Business Connexion only binds itself by way of signed agreements. 'Signed' refers to a hand-written signature, excluding any signature appended by 'electronic communication' as defined in the Electronic Communications and Transactions Act, no. 25 of 2002. 4. Directors: P.A. Watt, B. Mophatlane, A.C. Farthing (British), B. Sithole, I. Mophatlane, M.W. Schoeman. 5. Business Connexion (Pty) Ltd Company Registration Number: 1993/003683/07. -- 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: Problem starting sshd as a service
Check out this site for very good instructions on setting up sshd via cygwin. http://tech.erdelynet.com/cygwin-sshd.html Erik Weibust http://erik.weibust.net --- Mike Kenny - BCX - Infrastructure Services [EMAIL PROTECTED] wrote: I installed the entire cygwin package for use by everyone. Then, as Administrator, I run $ cygrunsrv -I sshd --path /usr/sbin/sshd $ cygrun -S sshd this results in a Win32 error 1062 starting a service. I have done the same thing on other systems in the past without an error. And the logs show nothing useful (event viewer and /var/log/ssh.log) Any ideas anyone? Kind Regards, Mike Kenny Principal Consultant Professional Services Business Connexion (Pty) Ltd Office: +27 (0)11 266 5703 Mobile: +27 (0)83 266 1437 Fax: +27 (0)11 266 5769 Email: [EMAIL PROTECTED] Web Site: www.bcx.co.za NOTICES: 1. This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify the sender at Business Connexion (Pty) Ltd immediately. Any unauthorised use, alteration or dissemination is prohibited. 2. Business Connexion (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. 3. Please note that Business Connexion only binds itself by way of signed agreements. 'Signed' refers to a hand-written signature, excluding any signature appended by 'electronic communication' as defined in the Electronic Communications and Transactions Act, no. 25 of 2002. 4. Directors: P.A. Watt, B. Mophatlane, A.C. Farthing (British), B. Sithole, I. Mophatlane, M.W. Schoeman. 5. Business Connexion (Pty) Ltd Company Registration Number: 1993/003683/07. -- 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/ = Erik Weibust http://erik.weibust.net -- 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: Problem starting sshd as a service
On Wed, Aug 04, 2004 at 05:33:51AM -0700, Erik Weibust wrote: Check out this site for very good instructions on setting up sshd via cygwin. http://tech.erdelynet.com/cygwin-sshd.html And, then, if you have further problems with sshd, make sure that you send all of your inquiries there, too... 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/
Fw: Problem configuring sshd as a service -expr error
- Original Message - From: prgmmer To: [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:35 AM Subject: Problem configuring sshd as a service -expr error I've been following and looking at a couple guides to setting up sshd on cygwin. So i've already download openssh and cygwin of course and cygwin runs fine. I create some environement variables and I add Path Then here's the problem. When I : ssh-host-config -y it gives me this output bash-2.05b$ ssh-host-config -y /usr/bin/ssh-host-config: line 113: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 180: [: -gt: unary operator expected Generating /etc/ssh_config file c:\usr\local\wbin\cp.exe: /etc/defaults/etc/ssh_config: No such file or director y Overwrite existing /etc/sshd_config file? (yes/no) yes Can't overwrite. /etc/sshd_config is write protected. /usr/bin/ssh-host-config: line 253: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 318: [: -gt: unary operator expected grep: /ssh-host-config.756/SERVICES: No such file or directory grep: /ssh-host-config.756/SERVICES: No such file or directory /usr/bin/ssh-host-config: line 358: /ssh-host-config.756/SERVICES: No such file or directory WARNING: Adding ssh to C:\WINDOWS\SERVICES failed! /usr/bin/ssh-host-config: line 415: [: -gt: unary operator expected Host configuration finished. Have fun! bash-2.05b$ And windows XP complains about how expr crashed. If I can get any help it would be greatly appreciated.. thank you Cygwin newb -- 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: Fw: Problem configuring sshd as a service -expr error
On Tue, 30 Dec 2003, prgmmer wrote: I've been following and looking at a couple guides to setting up sshd on cygwin. So i've already download openssh and cygwin of course and cygwin runs fine. I create some environement variables and I add Path Then here's the problem. When I : ssh-host-config -y it gives me this output bash-2.05b$ ssh-host-config -y /usr/bin/ssh-host-config: line 113: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 180: [: -gt: unary operator expected These two lines mean that expr didn't work correctly. Generating /etc/ssh_config file c:\usr\local\wbin\cp.exe: /etc/defaults/etc/ssh_config: No such file or directory This means that you have another set of unix-like tools in your path *before* the Cygwin ones. I'd also assume you have expr there, which would explain why it didn't work as expected. Overwrite existing /etc/sshd_config file? (yes/no) yes Can't overwrite. /etc/sshd_config is write protected. /usr/bin/ssh-host-config: line 253: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 318: [: -gt: unary operator expected Same expr problem. grep: /ssh-host-config.756/SERVICES: No such file or directory grep: /ssh-host-config.756/SERVICES: No such file or directory /usr/bin/ssh-host-config: line 358: /ssh-host-config.756/SERVICES: No such file or directory Again, looks like the wrong awk is found. WARNING: Adding ssh to C:\WINDOWS\SERVICES failed! /usr/bin/ssh-host-config: line 415: [: -gt: unary operator expected Same expr problem. Host configuration finished. Have fun! bash-2.05b$ And windows XP complains about how expr crashed. Please post the output of 'type -a expr' from a bash prompt. If I can get any help it would be greatly appreciated.. thank you Cygwin newb It would help immensely if you read and followed the Cygwin problem reporting guidelines at http://cygwin.com/problems.html, especially the part about attaching (as an uncompressed text *attachment*) the output of 'cygcheck -svr'. 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! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- 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: Fw: Problem configuring sshd as a service -expr error
Cygwin 1.5.5-1 under Xp Currently ssh-host-config runs after i deleted some other paths off of this old computer. However I get: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Thanxs. - Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: prgmmer [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:21 AM Subject: Re: Fw: Problem configuring sshd as a service -expr error On Tue, 30 Dec 2003, prgmmer wrote: I've been following and looking at a couple guides to setting up sshd on cygwin. So i've already download openssh and cygwin of course and cygwin runs fine. I create some environement variables and I add Path Then here's the problem. When I : ssh-host-config -y it gives me this output bash-2.05b$ ssh-host-config -y /usr/bin/ssh-host-config: line 113: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 180: [: -gt: unary operator expected These two lines mean that expr didn't work correctly. Generating /etc/ssh_config file c:\usr\local\wbin\cp.exe: /etc/defaults/etc/ssh_config: No such file or directory This means that you have another set of unix-like tools in your path *before* the Cygwin ones. I'd also assume you have expr there, which would explain why it didn't work as expected. Overwrite existing /etc/sshd_config file? (yes/no) yes Can't overwrite. /etc/sshd_config is write protected. /usr/bin/ssh-host-config: line 253: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 318: [: -gt: unary operator expected Same expr problem. grep: /ssh-host-config.756/SERVICES: No such file or directory grep: /ssh-host-config.756/SERVICES: No such file or directory /usr/bin/ssh-host-config: line 358: /ssh-host-config.756/SERVICES: No such file or directory Again, looks like the wrong awk is found. WARNING: Adding ssh to C:\WINDOWS\SERVICES failed! /usr/bin/ssh-host-config: line 415: [: -gt: unary operator expected Same expr problem. Host configuration finished. Have fun! bash-2.05b$ And windows XP complains about how expr crashed. Please post the output of 'type -a expr' from a bash prompt. If I can get any help it would be greatly appreciated.. thank you Cygwin newb It would help immensely if you read and followed the Cygwin problem reporting guidelines at http://cygwin.com/problems.html, especially the part about attaching (as an uncompressed text *attachment*) the output of 'cygcheck -svr'. 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! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton cygcheck.out Description: Binary data -- 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: Fw: Problem configuring sshd as a service -expr error
Please make sure your mailer doesn't leave raw e-mail addresses in the message -- they're food for spam harvesters. Your cygcheck output looks a bit weird (i.e., you have findutils installed, but find was not found; your path doesn't contain /usr/X11R6/bin even though you've installed XFree86 -- a stale /etc/profile, perhaps?). I'd suggest running cygcheck -cv to see if your installation is corrupted, and if so, which files are missing. As for the error 1062 message -- look in /var/log/sshd.log and the Windows event log and see if there are any clues there. Igor On Tue, 30 Dec 2003, prgmmer wrote: Cygwin 1.5.5-1 under Xp Currently ssh-host-config runs after i deleted some other paths off of this old computer. However I get: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Thanxs. - Original Message - From: Igor Pechtchanski To: prgmmer Cc: cygwinatcygwindotcom Sent: Tuesday, December 30, 2003 11:21 AM Subject: Re: Fw: Problem configuring sshd as a service -expr error On Tue, 30 Dec 2003, prgmmer wrote: I've been following and looking at a couple guides to setting up sshd on cygwin. So i've already download openssh and cygwin of course and cygwin runs fine. I create some environement variables and I add Path Then here's the problem. When I : ssh-host-config -y it gives me this output bash-2.05b$ ssh-host-config -y /usr/bin/ssh-host-config: line 113: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 180: [: -gt: unary operator expected These two lines mean that expr didn't work correctly. Generating /etc/ssh_config file c:\usr\local\wbin\cp.exe: /etc/defaults/etc/ssh_config: No such file or directory This means that you have another set of unix-like tools in your path *before* the Cygwin ones. I'd also assume you have expr there, which would explain why it didn't work as expected. Overwrite existing /etc/sshd_config file? (yes/no) yes Can't overwrite. /etc/sshd_config is write protected. /usr/bin/ssh-host-config: line 253: [: -gt: unary operator expected /usr/bin/ssh-host-config: line 318: [: -gt: unary operator expected Same expr problem. grep: /ssh-host-config.756/SERVICES: No such file or directory grep: /ssh-host-config.756/SERVICES: No such file or directory /usr/bin/ssh-host-config: line 358: /ssh-host-config.756/SERVICES: No such file or directory Again, looks like the wrong awk is found. WARNING: Adding ssh to C:\WINDOWS\SERVICES failed! /usr/bin/ssh-host-config: line 415: [: -gt: unary operator expected Same expr problem. Host configuration finished. Have fun! bash-2.05b$ And windows XP complains about how expr crashed. Please post the output of 'type -a expr' from a bash prompt. If I can get any help it would be greatly appreciated.. thank you Cygwin newb It would help immensely if you read and followed the Cygwin problem reporting guidelines at http://cygwin.com/problems.html, especially the part about attaching (as an uncompressed text *attachment*) the output of 'cygcheck -svr'. 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! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton -- 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 using sshd as a service
I am trying to get sshd to run as a service on my W2K SP2 machine. I have got sshd set up properly (as far as I know), with all the keys and files it needs. If I start a cygwin bash shell and type /usr/sbin/sshd, then the server starts fine and issues no errors or warnings. From another PC on the network, I can ssh in to this PC. In other words, sshd is working perfectly. However, when I install it as a service with cygrunsrv -I sshd -p /usr/sbin/sshd and then try to start the service, either with cygrunsrv or from the Control Panel, I get: cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Looking with taskmanager, however, I see that sshd has been started fine - I have no problem logging into it. So the sshd server has been started, even though Windows does not know it. This leads to complaints during startup, and I can't use net start and net stop but must kill sshd manually if needed. Cygwin1.dll version 1.3.12 of 06/07/2002. Any ideas would be much appreciated. David Norway. I love deadlines. I love the whooshing noise they make as they go past. Douglas Adams -- 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: Problems using sshd as a service
On Wed, Dec 04, 2002 at 10:33:41AM +0100, David Brown wrote: I am trying to get sshd to run as a service on my W2K SP2 machine. I have got sshd set up properly (as far as I know), with all the keys and files it needs. If I start a cygwin bash shell and type /usr/sbin/sshd, then the server starts fine and issues no errors or warnings. From another PC on the network, I can ssh in to this PC. In other words, sshd is working perfectly. However, when I install it as a service with cygrunsrv -I sshd -p /usr/sbin/sshd and then try to start the service, either with cygrunsrv or from the Control Panel, I get: cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Are your mounts type system or user ? system should be better. Gruss Olaf Föllinger -- Olaf Föllinger Berater S.E.S.A. Software und Systeme AG -- 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: Problems using sshd as a service
DB == David Brown [EMAIL PROTECTED] writes: DB Any ideas would be much appreciated. I had similar problems recently, and Corinna Vinschen (among others) helpped me to solve them. Just look at messages in this group/list with a subject of: sshd installation on NT 5.0 between 26 and 29.11. Eventually, my problems were with the ownership of the files and directories (OK for starting from the command line, but not as a service) and the protections (read for all). -- Marc GirodP.O. Box 323Voice: +358-71 80 25581 Nokia NBI 00045 NOKIA Group Mobile: +358-50 38 78415 Takomo 1 / 4c27 Finland Fax:+358-71 80 61604 -- 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: Problems using sshd as a service
First guess is that permissions on the keys are wrong. Based on your cygrunsrv line, I expect you are running the service as System, however, when you start by hand, you are not System. For sshd to work in those conditions, you would have to own the key files. Another possibility, related to the first, is that you are not using ntsec in your CYGWIN variable. If either or both of these cases are true, you can try the following to fix your problem. cygrunsrv -R sshd cygrunsrv -I sshd -p /usr/sbin/sshd -e 'CYGWIN=binmode tty ntsec' export CYGWIN=binmode tty ntsec chmod 600 /etc/ssh/ssh_host*_key chown SYSTEM:Administrators /etc/ssh/ssh_host*_key net start sshd After that you can also look at /var/log/sshd.log to see any errors from sshd starting. That should help you. On Wed, 4 Dec 2002, David Brown wrote: I am trying to get sshd to run as a service on my W2K SP2 machine. I have got sshd set up properly (as far as I know), with all the keys and files it needs. If I start a cygwin bash shell and type /usr/sbin/sshd, then the server starts fine and issues no errors or warnings. From another PC on the network, I can ssh in to this PC. In other words, sshd is working perfectly. However, when I install it as a service with cygrunsrv -I sshd -p /usr/sbin/sshd and then try to start the service, either with cygrunsrv or from the Control Panel, I get: cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Looking with taskmanager, however, I see that sshd has been started fine - I have no problem logging into it. So the sshd server has been started, even though Windows does not know it. This leads to complaints during startup, and I can't use net start and net stop but must kill sshd manually if needed. Cygwin1.dll version 1.3.12 of 06/07/2002. Any ideas would be much appreciated. David Norway. I love deadlines. I love the whooshing noise they make as they go past. Douglas Adams -- 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/ Prentis Brooks | [EMAIL PROTECTED] | 703-265-0914 | AIM: PrentisBrooks Senior System Administrator - Web Infrastructure Security A knight is sworn to valor. His heart knows only virtue. His blade defends the helpless. His word speaks only truth. His wrath undoes the wicked. - the old code of Bowen, last of the dragonslayers -- 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: Problems using sshd as a service
On Wed, Dec 04, 2002 at 10:53:52AM +0100, David Brown wrote: On Wed, Dec 04, 2002 at 10:33:41AM +0100, David Brown wrote: I am trying to get sshd to run as a service on my W2K SP2 machine. I have got sshd set up properly (as far as I know), with all the keys and files it needs. If I start a cygwin bash shell and type /usr/sbin/sshd, then the server starts fine and issues no errors or warnings. From another PC on the network, I can ssh in to this PC. In other words, sshd is working perfectly. However, when I install it as a service with cygrunsrv -I sshd -p /usr/sbin/sshd and then try to start the service, either with cygrunsrv or from the Control Panel, I get: cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Are your mounts type system or user ? system should be better. $ mount D:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) D:\cygwin\bin on /usr/bin type system (binmode) D:\cygwin\lib on /usr/lib type system (binmode) D:\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) e: on /cygdrive/e type user (binmode,noumount) m: on /cygdrive/m type user (binmode,noumount) p: on /cygdrive/p type user (binmode,noumount) q: on /cygdrive/q type user (binmode,noumount) So it looks like the basic cygwin mounts are system, but the mappings to windows drives are user. I presume sshd only access files through the basic mounts, so they should be ok. There is also no problem if I start sshd from the bash shell - perhaps this is something to do with the user that starts it, since services are owned/started by system? Maybe it's this, mounts seem to be o.k. Gruss Olaf Föllinger P.S.: Please answer on the list so that other can read the answers too. Sorry about that - I forgot to check the reply-to setting for this mailing list (most of the lists I use regularly have reply-to set to the list rather than the poster. I've just recently learned why many list administrators see that as a bad idea, and I agree with that - yet I *still* managed to forget it). It turns out that what I had to do was install the service with cygrunsrv -I sshd -p /usr/sbin/sshd -a -D I also changed ownership of /var/empty to SYSTEM, but I don't think that was the problem (since the directory was world writeable, and I also have been running without ntsec). I'm not too worried about security here, since the company's internal network is pretty well protected from the outside, and I know that if I can't figure things out, then there is no one else in our company who can! mvh. David -- 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: Problems using sshd as a service
I am afraid I cannot get the permissions to work out right. Perhaps it is because I have done too much with cygwin without ntsec, or perhaps I must reboot after adding CYGWIN=ntsec to my environment variables (although your suggested -e setting in the cygrunsrv line should fix that). Fortunately I don't need much security here - no one can get into our network without first passing through the ssh server on our linux box (and I understand the security there - it is just mixing NT and unix-type security with cygwin that has me confused), and I'm not worried about security on our internal network. I know it is always best to use whatever available security you can get, but even without ntsec, the sshd server on my machine is definitely not going to be our network's weakest link. I have found, however, that I need to add -a -D to the cygrunsrv installation flags to be able to get sshd to start as a service without errors, and to be able to start and stop it with net start and net stop. Thanks for your tips, anyway. Maybe one day I'll work it out - perhaps next time I need to do a clean install of cygwin I'll try getting ntsec to work. But my current cygwin installation has been build up over time, and I rely on too many bits of cygwin to be keen on messing up the things that work. mvh. David First guess is that permissions on the keys are wrong. Based on your cygrunsrv line, I expect you are running the service as System, however, when you start by hand, you are not System. For sshd to work in those conditions, you would have to own the key files. Another possibility, related to the first, is that you are not using ntsec in your CYGWIN variable. If either or both of these cases are true, you can try the following to fix your problem. cygrunsrv -R sshd cygrunsrv -I sshd -p /usr/sbin/sshd -e 'CYGWIN=binmode tty ntsec' export CYGWIN=binmode tty ntsec chmod 600 /etc/ssh/ssh_host*_key chown SYSTEM:Administrators /etc/ssh/ssh_host*_key net start sshd After that you can also look at /var/log/sshd.log to see any errors from sshd starting. That should help you. On Wed, 4 Dec 2002, David Brown wrote: I am trying to get sshd to run as a service on my W2K SP2 machine. I have got sshd set up properly (as far as I know), with all the keys and files it needs. If I start a cygwin bash shell and type /usr/sbin/sshd, then the server starts fine and issues no errors or warnings. From another PC on the network, I can ssh in to this PC. In other words, sshd is working perfectly. However, when I install it as a service with cygrunsrv -I sshd -p /usr/sbin/sshd and then try to start the service, either with cygrunsrv or from the Control Panel, I get: cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Looking with taskmanager, however, I see that sshd has been started fine - I have no problem logging into it. So the sshd server has been started, even though Windows does not know it. This leads to complaints during startup, and I can't use net start and net stop but must kill sshd manually if needed. Cygwin1.dll version 1.3.12 of 06/07/2002. Any ideas would be much appreciated. David Norway. I love deadlines. I love the whooshing noise they make as they go past. Douglas Adams -- 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/ Prentis Brooks | [EMAIL PROTECTED] | 703-265-0914 | AIM: PrentisBrooks Senior System Administrator - Web Infrastructure Security A knight is sworn to valor. His heart knows only virtue. His blade defends the helpless. His word speaks only truth. His wrath undoes the wicked. - the old code of Bowen, last of the dragonslayers -- 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: Problems using sshd as a service
On Wed, 4 Dec 2002, David Brown wrote: DB I have found, however, that I need to add -a -D to the cygrunsrv DB installation flags to be able to get sshd to start as a service without DB errors, and to be able to start and stop it with net start and net stop. Are you aware of /usr/bin/ssh-host-config ? It walks you through sshd setup, and executes cygrunsrv with the needed parameters - including -a -D. 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: sshd as a service
On Thu, Mar 14, 2002 at 09:14:11AM -0600, Brian Huddleston wrote: We're trying to get sshd running on a Windows 2000 server box. We're using the latest version of everything (as of yesterday morning). We're trying to get DSA authentication setup and we seem to have succeeded. *If* we launch sshd from the command line, the DSA authentication works as expected and we can login without a password. Once we install it as a service and try again we get prompted for the password. I assume it is some sort of permission problem (since sshd behaves properly from the commandline), *except* We have StrictModes set to no in /etc/sshd_config *and* we only set CYGWIN to binmode tty when prompted by the ssh configuration script, so there shouldn't be any NT security issues involved. We even manually gave SYSTEM Full Control over the entire cygwin directory and it didn't seem to work. You *must* set ntsec to get it reliably working as a service. User context switches w/o providing a password only works with ntsec. 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/
sshd as a service
We're trying to get sshd running on a Windows 2000 server box. We're using the latest version of everything (as of yesterday morning). We're trying to get DSA authentication setup and we seem to have succeeded. *If* we launch sshd from the command line, the DSA authentication works as expected and we can login without a password. Once we install it as a service and try again we get prompted for the password. I assume it is some sort of permission problem (since sshd behaves properly from the commandline), *except* We have StrictModes set to no in /etc/sshd_config *and* we only set CYGWIN to binmode tty when prompted by the ssh configuration script, so there shouldn't be any NT security issues involved. We even manually gave SYSTEM Full Control over the entire cygwin directory and it didn't seem to work. Are there any pointers you might be able to give or suggested courses of action. We don't get output in sshd.log indicating what it is unhappy about. Anyone here recognize what is going on? Five hours of quality time with Google and I still can't figure out the problem. :-) -Brian -- 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/