Openservice Win32 Error 1060
Contents |
stopping a service: OpenService: Win32 error 1060: From: "Dao, Phuong"
Error 1062 The Service Has Not Been Started
Oct 2007 15:12:55 -0400 Subject: RE: cygrunsrv: Error stopping a service: queryservicestatus win32 error 1062 OpenService: Win32 error 1060: References: <5555406B7A3A9841A40599FD1425EAD5042DD17F@MTL-MSG-01.cgiclients.com> <4717A8D2.9040804@cygwin.com> Hi Thanks for your answer. This is what I get /var/empty must be owned by root and not group or world-writable. when running ssh-host-config and trying to restart the service: $ ssh-host-config Overwrite existing /etc/ssh_config file? (yes/no) yes Generating /etc/ssh_config file Overwrite existing /etc/sshd_config file? (yes/no) yes Privilege separation
Controlservice
is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep . Should privilege separation be used? (yes/no) yes Generating /etc/sshd_config file Host configuration finished. Have fun! dwuser@WHMM2476 ~ $ cygrunsrv -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The
Cygrunsrv Command Not Found
service has not been started. Phuong -----Original Message----- From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Larry Hall (Cygwin) Sent: October 18, 2007 2:41 PM To: cygwin@cygwin.com Subject: Re: cygrunsrv: Error stopping a service: OpenService: Win32 error 1060: Dao, Phuong wrote: > Hi, > > I get this error when trying to start the sshd service, does anyone has > a clue of the problem? > Thanks a lot > > C:\cygwin\bin>cygrunsrv -S sshd > cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error > 1062: > The service has not been started. According to your cygcheck output, you're running an old version of the software, the installation didn't finish properly, and you haven't installed sshd as a service. All of these will likely cause some problems for you. I would recommend running 'setup.exe' and letting it upgrade your system. Once done, run 'ssh-host-config'. Then try starting the service. Don't forget to run 'ssh-user-config' if you plan to ssh to other machines from your Windows box. -- Larry Hall http
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this queryservicestatusex site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer http://cygwin.com/ml/cygwin/2007-10/msg00432.html The best answers are voted up and rise to the top How to get rid of QueryServiceStatus: Win32 error 1062 when you try to start sshd on Cygwin? up vote 5 down vote favorite 1 I installed Cygwin and sshd on Windows 7 but I'm not able to make it work. I followed the guide from http://www.noah.org/ssh/cygwin-sshd.html but I still get: $ cygrunsrv -S sshd cygrunsrv: http://serverfault.com/questions/340517/how-to-get-rid-of-queryservicestatus-win32-error-1062-when-you-try-to-start-ssh Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Configuration details: Windows 7 in a domain running with a domain user that has local administrative priviledges netstat -a -b reports nothing running on port 22 C:\cygwin\var\log\sshd.log is empty After I installed cygwin and sshd, I run ssh-host-config -y Already tried to add SYSTEM account to the 3 directories, no change. Already tried a full system reboot, no change Update: Windows logs complains about Possible duplicate cygwin1.dll cygwin cygwin-sshd share|improve this question edited Dec 13 '11 at 16:32 asked Dec 13 '11 at 15:35 sorin 2,111103763 Have you solved this yet? I am having similar problems? –Lord Loh. Feb 18 '12 at 21:21 i've foudn i can reproduce this error by going to services.msc cygwin sshd logon tab, and switching between local account(cyg_server), and system. each time there's a change, it needs an ssh-host-config -y done from a command prompt started via right click run as administrator, or from a runas /user:Administrator c:\windows\system32\cmd.exe That ssh-host-config -y must precede the net start sshd / cygrunsrv -S sshd. And if it doesn't work from a 'run as admi
seen: 2 hours 51 min ago Joined: 01.05.2008 - 21:33 Error starting a service When Iinstall the new version (1.3.5) I recieive the following error:Start sshdservice/usr/bin/cygrunsrv:Error starting a service: OpenService:Win32 error 1060:Thespecified service does not win32 error exist as an installed service. The directory/usr/bin/ doesn’t exist. This must be Ithink /CopSSH/bin/ GreetingsGreta. Top reply Thu, 08/09/2005 - 09:58 #2 itefix Offline Last seen: 2 hours 51 min ago Joined: 01.05.2008 - openservice win32 error 21:33 Re: Error starting a service copSSH mounts /usr/bin to /bin directory. Cygrunsrv runs in your case. However, it complains about non-existence of the service. I think something went wrong during installation. Can you uninstall and install copssh again ? Send me details log if you have still problems. Rgrds Top reply Fri, 09/09/2005 - 11:34 #3 itefix Offline Last seen: 2 hours 51 min ago Joined: 01.05.2008 - 21:33 Re: Error starting a service I have uninstall and removed all old software and reinstalled it and then it works perfect. Top reply Post reply AboutTerms & PolicyBlogContact © 2003-2016 itefix.net randomness