X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=BAYES_00,HK_OBFDOM,HTTP_ESCAPED_HOST,J_CHICKENPOX_27,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Fri, 26 Jun 2009 09:28:50 -0700 Message-ID: <1f04f6fa0906260928jf859bcci64b466d9ac613cda@mail.gmail.com> Subject: net start sshd problem From: Gordon Fogus To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I installed cygwin for the second time. I installed all the packages from ftp%3a%2f%2fmirror.cs.vt.edu%2fpub%2fcygwin%2fcygwin%2f mirror. My session then ran as follows (after I configured the mkpasswrd thing for my domain account): ---- gsfogus AT GSFogus ~ $ ssh-host-config -y *** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes *** Info: Creating default /etc/ssh_config file *** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes *** Info: Creating default /etc/sshd_config file *** Info: Privilege separation is set to yes by default since OpenSSH 3.3. *** Info: However, this requires a non-privileged account called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh= /READ ME.privsep. *** Query: Should privilege separation be used? (yes/no) yes *** Info: Updating /etc/sshd_config file *** Query: Overwrite existing /etc/inetd.d/sshd-inetd file? (yes/no) yes *** Info: Creating default /etc/inetd.d/sshd-inetd file *** Info: Updated /etc/inetd.d/sshd-inetd *** Info: Host configuration finished. Have fun! gsfogus AT GSFogus ~ $ ssh localhost ssh: connect to host localhost port 22: Connection refused gsfogus AT GSFogus ~ $ net start sshd System error 2 has occurred. The system cannot find the file specified. gsfogus AT GSFogus ~ $ cygrunsrv -S sshd cygrunsrv: Error starting a service: StartService: Win32 error 2: applicat= ion The system cannot find the file specified. gsfogus AT GSFogus ~ $ ssh localhost ssh: connect to host localhost port 22: Connection refused ---- In order to get to this location, I followed these instructions: ---- 1. After finishing installing Cygwin, right click =93My Computer=94, and select =93Properties=94, =93Advanced=94, =93Environment Variables=94. Click= on the =93New=94 button to add a new entry to =93System variables=94. The new entry is called =93CYGWIN=94 and set the value to =93ntsec tty=94. 2. While in the environment variables dialog, confirm that =93Path=94 has =93c:\cygwin\bin=94 (or wherever you have put Cygwin=92s bin/ directory) in its definition. 3. Run the following command in a Cygwin shell: >ssh-host-config =96y If the script asks you about =93privilege separation=94, answer =93yes=94. If the script asks about =93create a local user sshd on this machine=94, answer =93yes=94 If the script asks you about =93install sshd as a service=94, answer =93yes= =94 When the script asks you for =93environment variable CYGWIN=3D=94, answer = =93ntsec tty=94 You may need to change the following permissions if error messages instruct you to do so when using Cygwin install version 2.573.2.3: >chmod +r /etc/passwd >chmod +r /etc/group >chmod o+x /var 4. Confirm that windows will automatically start up the sshd service on startup. Click on =93Start=94, =93Run=94 and enter =93services.msc=94 in= the =93Open:=94 text box. Click =93OK=94. In the =93Name=94 column, look for = =93CYGWIN sshd=94. Right click this entry and select =93Properties=94. In the =93Star= tup type=94 text box, it should show =93Automatic=94. 5. Next, click on the =93Log On=94 tab in the Cygwin sshd Properties dialog box. Under =93Local System account=94, select the checkbox for =93Allow service to interact with desktop=94. Press =93OK=94 and exit the =93services.msc=94 window. 6. Start the sshd service: >cygrunsrv =96S sshd or >net start sshd ---- How can I fix this problem? I cannot SSH into my machine. -- 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