X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Win2003 server and cron/sshd as services (1.5.19) Date: Tue, 2 May 2006 16:44:29 -0400 Message-ID: From: "Harig, Mark" To: "Mike Dunn" , X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k42KkAKE025444 > I've been having problems getting cron/sshd to work properly (as > services or not as services) on a Win 2003 server. I understand that > certain attributes of the SYSTEM account changed in win2003, and I've > tried to allow ssh-host-config to setup sshd, but with no success. I > have tried setting up both sshd and cron manually (following relevant > win2003 advice from http://www.cygwin.com/ml/cygwin/2003-11/msg00368.html), but I still > cannot seem to get either service to work properly. Have you stopped and started the ssh service several times? If so, have you remembered to provide the password that that 'ssh-host-config' requires you to create? It would be helpful in diagnosing your problem if you were to provide the text of your commands for starting and stopping the ssh service. Here is an edited copy of the command that I have put into a wrapper script to start the ssh service. I am running sshd on several computers running W2003. I have edited out the password that I use. See the cygrunsrv documentation for a description of its options. start_sshd.sh ------------ #!/bin/bash # Stop if any errors occur. set -o errexit; # If there is a running service, then stop it and remove it. cygrunsrv --query sshd > /dev/null 2>&1 && { cygrunsrv --stop $service; cygrunsrv --remove $service; }; # Install the sshd service. cygrunsrv --install sshd --shutdown --path /usr/sbin/sshd --args "-D" \ --disp "Cygwin sshd" --desc "Cygwin Openssh service" \ --user sshd_server --passwd "your_fine_password" \ --env "CYGWIN=binmode ntsec tty"; # Start the sshd service. cygrunsrv --start sshd; # === End of start_sshd.sh === # Of course, since 'your_fine_password' is provided in clear text, you'll want to keep this script protected, or maybe change the script to prompt you for the password. -- 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/