Discussion:
SSHD Issue Windows 2003 64 bit
Gary
2011-08-09 20:47:51 UTC
Permalink
I'm having issues getting SSHD working on Windows Server 2003 64 bit.
I've properly installed SSHD as a service but I receive the following
error when starting the service from 'services.msc':
'The SSHD service on Local Computer started and then stopped.  Some
services stop automatically if they have no work to do, for example,
The Performance Logs and Alerts service'.

Also when I execute the following 'net start sshd' from the cygwin
terminal I receive the following:
'The SSHD service is starting.  The SSHD service could not be started.
The service did not report an error'.

Anything would help, thanks!


- Gary
Csaba Raduly
2011-08-10 05:27:05 UTC
Permalink
Post by Gary
I'm having issues getting SSHD working on Windows Server 2003 64 bit.
I've properly installed SSHD as a service but I receive the following
'The SSHD service on Local Computer started and then stopped.  Some
services stop automatically if they have no work to do, for example,
The Performance Logs and Alerts service'.
Also when I execute the following 'net start sshd' from the cygwin
'The SSHD service is starting.  The SSHD service could not be started.
 The service did not report an error'.
Anything would help, thanks!
You need to check the event log (application and/or system).

Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
Gary
2011-08-10 22:59:14 UTC
Permalink
The logs specify:
/var/empty must be owned by root and not group or world-writable.

I've tried changing permissions, and also looking on the forums for
this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't
figure it out. Let me know, thanks!
Post by Csaba Raduly
Post by Gary
I'm having issues getting SSHD working on Windows Server 2003 64 bit.
I've properly installed SSHD as a service but I receive the following
'The SSHD service on Local Computer started and then stopped.  Some
services stop automatically if they have no work to do, for example,
The Performance Logs and Alerts service'.
Also when I execute the following 'net start sshd' from the cygwin
'The SSHD service is starting.  The SSHD service could not be started.
 The service did not report an error'.
Anything would help, thanks!
You need to check the event log (application and/or system).
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
--
Gary Phelps
Gary
2011-08-10 23:20:32 UTC
Permalink
http://cygwin.com/ml/cygwin/2008-02/msg00429.html (ignore the {})
Post by Gary
/var/empty must be owned by root and not group or world-writable.
I've tried changing permissions, and also looking on the forums for
this {http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't
figure it out.  Let me know, thanks!
Post by Csaba Raduly
Post by Gary
I'm having issues getting SSHD working on Windows Server 2003 64 bit.
I've properly installed SSHD as a service but I receive the following
'The SSHD service on Local Computer started and then stopped.  Some
services stop automatically if they have no work to do, for example,
The Performance Logs and Alerts service'.
Also when I execute the following 'net start sshd' from the cygwin
'The SSHD service is starting.  The SSHD service could not be started.
 The service did not report an error'.
Anything would help, thanks!
You need to check the event log (application and/or system).
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
--
Gary Phelps
--
Gary Phelps
Thorsten Kampe
2011-08-11 08:15:27 UTC
Permalink
* Gary (Wed, 10 Aug 2011 15:59:14 -0700)
The logs specify: /var/empty must be owned by root and not group or
world-writable.
That's pretty clear, isn't it?
I've tried changing permissions,
What exactly did you try?
and also looking on the forums for this
{http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't
figure it out.
Changing ownership is done with chown and permissions with chmod.

Thorsten
Larry Hall (Cygwin)
2011-08-11 16:40:39 UTC
Permalink
Post by Thorsten Kampe
* Gary (Wed, 10 Aug 2011 15:59:14 -0700)
The logs specify: /var/empty must be owned by root and not group or
world-writable.
That's pretty clear, isn't it?
I've tried changing permissions,
What exactly did you try?
I expect the confusion comes from the stock sshd message that specifies
'root' where on Cygwin it really needs to be the user set up to run the
service ('LocalSystem' on XP x86 and, typically, 'cyg_server' on
everything else).
--
Larry

_____________________________________________________________________

A: Yes.
Post by Thorsten Kampe
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-11 17:01:58 UTC
Permalink
I've attempted chmod from the terminal and to change the permissions
through the standard UI. I've attempted to chown to "SYSTEM", but the
user does not exist. Here ar e the permission settings for the
/var/empty folder:

bash-4.1$ getfacl empty
# file: empty
# owner: Administrator
# group: mkpasswd
user::rwx
group::r-x
mask:rwx
other:r-x
default:user::rwx
default:user:Administrator:rwx
default:group::r-x
default:mask:rwx
default:other:r-x

On Thu, Aug 11, 2011 at 1:15 AM, Thorsten Kampe
Post by Thorsten Kampe
* Gary (Wed, 10 Aug 2011 15:59:14 -0700)
The logs specify: /var/empty must be owned by root and not group or
world-writable.
That's pretty clear, isn't it?
I've tried changing permissions,
What exactly did you try?
and also looking on the forums for this
{http://cygwin.com/ml/cygwin/2008-02/msg00429.html} I still can't
figure it out.
Changing ownership is done with chown and permissions with chmod.
Thorsten
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Gary Phelps
Thorsten Kampe
2011-08-11 17:33:31 UTC
Permalink
* Gary (Thu, 11 Aug 2011 10:01:58 -0700)
Post by Gary
I've attempted chmod from the terminal and to change the permissions
through the standard UI.
Terminal is better. Try again "chmod 700 /var/empty".
Post by Gary
I've attempted to chown to "SYSTEM", but the user does not exist.
It should:

% grep -i system /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::

Try rerunning 000-cygwin-post-install.sh or passwd-grp.sh (move your
passwd file first).

Thorsten
Gary
2011-08-11 18:25:04 UTC
Permalink
I've tried re-running the 000-cygwin-post-install.sh & receive no echo
from the terminal, I've moved the passwd file (from my understanding
outside the directory before running the post-install). My passwd
file looks like this:

sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin

I can't find a passwd-grp.sh script. What should my passwd file look like?


On Thu, Aug 11, 2011 at 10:33 AM, Thorsten Kampe
Post by Thorsten Kampe
* Gary (Thu, 11 Aug 2011 10:01:58 -0700)
Post by Gary
I've attempted chmod from the terminal and to change the permissions
through the standard UI.
Terminal is better. Try again "chmod 700 /var/empty".
Post by Gary
I've attempted to chown to "SYSTEM", but the user does not exist.
% grep -i system /etc/passwd
Try rerunning 000-cygwin-post-install.sh or passwd-grp.sh (move your
passwd file first).
Thorsten
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Gary Phelps
Thorsten Kampe
2011-08-11 18:53:01 UTC
Permalink
* Gary (Thu, 11 Aug 2011 11:25:04 -0700)
Post by Gary
I've tried re-running the 000-cygwin-post-install.sh & receive no echo
from the terminal, I've moved the passwd file (from my understanding
outside the directory before running the post-install). My passwd file
sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin
I can't find a passwd-grp.sh script.
Both files should actually be in /etc/postinstall and end in .sh.done

Just try running "/bin/mkpasswd -l -c > /etc/passwd" and "/bin/mkgroup -
l -c > /etc/group" manually.
Post by Gary
What should my passwd file look like?
On a Windows 7 non domain machine like this for instance (mind you, line
breaks and I don't run sshd as service on my machine):
SYSTEM:*:18:544:,S-1-5-18::
LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350-
3027294242-313109463-500:/home/Administrator:/bin/bash
Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242-
313109463-501:/home/Guest:/bin/bash
HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S-
1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser
$:/bin/bash
thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350-
3027294242-313109463-1001:/home/thorsten:/bin/bash
__vmware_user__:unused:1004:513:__vmware_user__,U-hombre
\__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/
__vmware_user__:/bin/bash


Thorsten
Gary
2011-08-11 21:33:38 UTC
Permalink
Created the passwd and group files from:
/bin/mkpasswd -l -c > /etc/passwd
/bin/mkgroup -> l -c > /etc/group

passwd files looks good now, moved passwd file and re-ran
./000-cygwin-post-install.sh

Still when I 'net start sshd' I still receive the same error, also
when I try to re-instantiate the service in windows..

On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe
Post by Thorsten Kampe
* Gary (Thu, 11 Aug 2011 11:25:04 -0700)
Post by Gary
I've tried re-running the 000-cygwin-post-install.sh & receive no echo
from the terminal, I've moved the passwd file (from my understanding
outside the directory before running the post-install). My passwd file
sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin
I can't find a passwd-grp.sh script.
Both files should actually be in /etc/postinstall and end in .sh.done
Just try running "/bin/mkpasswd -l -c > /etc/passwd" and "/bin/mkgroup -
l -c > /etc/group" manually.
Post by Gary
What should my passwd file look like?
On a Windows 7 non domain machine like this for instance (mind you, line
Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350-
3027294242-313109463-500:/home/Administrator:/bin/bash
Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242-
313109463-501:/home/Guest:/bin/bash
HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S-
1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser
$:/bin/bash
thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350-
3027294242-313109463-1001:/home/thorsten:/bin/bash
__vmware_user__:unused:1004:513:__vmware_user__,U-hombre
\__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/
__vmware_user__:/bin/bash
Thorsten
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-11 23:20:24 UTC
Permalink
/bin/mkpasswd -l -c> /etc/passwd
/bin/mkgroup -> l -c> /etc/group
^^^^^
Presumably this is a typo transcribing to your email message?
passwd files looks good now, moved passwd file and re-ran
./000-cygwin-post-install.sh
That you didn't really need, though it probably did no harm. Can you
check if SYSTEM is in '/etc/group' and '/etc/passwd' though still?
Still when I 'net start sshd' I still receive the same error, also
when I try to re-instantiate the service in windows..
Did you run ssh-host-config (and ssh-user-config) as specified by
'/usr/share/doc/Cygwin/openssh.README'? If so, do you have 'cyg_server'
in your '/etc/passwd' file? This really should be the user the service
runs under on 2003 x64.
--
Larry

_____________________________________________________________________

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-12 21:54:57 UTC
Permalink
Yeah that was a typo.. So my /etc/passwd & /etc/group file both have
the SYSTEM in them:
SYSTEM:S-1-5-18:18: - Group
SYSTEM:*:18:544:,S-1-5-18:: - passwd

Whenever I run 'ssh-host-config' I receive no echo from the terminal,
& I don't see 'cyg_srv' anywhere in my passwd file below:

SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-XEN-VM64\Administrator,S-1-5-21-693619687-569673921-3156715980-500:/home/Administrator:/bin/switch
Guest:unused_by_nt/2000/xp:501:513:U-XEN-VM64\Guest,S-1-5-21-693619687-569673921-3156715980-501:/home/Guest:/bin/switch
scadmin:unused_by_nt/2000/xp:1006:513:scadmin,U-XEN-VM64\scadmin,S-1-5-21-693619687-569673921-3156715980-1006:/home/scadmin:/bin/switch
SUPPORT_388945a0:unused_by_nt/2000/xp:1001:513:CN=Microsoft
Corporation,L=Redmond,S=Washington,C=US,U-XEN-VM64\SUPPORT_388945a0,S-1-5-21-693619687-569673921-3156715980-1001:/home/SUPPORT_388945a0:/bin/switch
Post by Thorsten Kampe
/bin/mkpasswd -l -c > /etc/passwd
/bin/mkgroup -> l -c > /etc/group
passwd files looks good now, moved passwd file and re-ran
./000-cygwin-post-install.sh
Still when I 'net start sshd' I still receive the same error, also
when I try to re-instantiate the service in windows..
On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe
Post by Thorsten Kampe
* Gary (Thu, 11 Aug 2011 11:25:04 -0700)
Post by Gary
I've tried re-running the 000-cygwin-post-install.sh & receive no echo
from the terminal, I've moved the passwd file (from my understanding
outside the directory before running the post-install). My passwd file
sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin
I can't find a passwd-grp.sh script.
Both files should actually be in /etc/postinstall and end in .sh.done
Just try running "/bin/mkpasswd -l -c > /etc/passwd" and "/bin/mkgroup -
l -c > /etc/group" manually.
Post by Gary
What should my passwd file look like?
On a Windows 7 non domain machine like this for instance (mind you, line
Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350-
3027294242-313109463-500:/home/Administrator:/bin/bash
Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242-
313109463-501:/home/Guest:/bin/bash
HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S-
1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser
$:/bin/bash
thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350-
3027294242-313109463-1001:/home/thorsten:/bin/bash
__vmware_user__:unused:1004:513:__vmware_user__,U-hombre
\__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/
__vmware_user__:/bin/bash
Thorsten
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Gary Phelps
--
Gary Phelps
Gary
2011-08-15 21:11:42 UTC
Permalink
Any ideas?
Post by Gary
Yeah that was a typo.. So my /etc/passwd & /etc/group file both have
SYSTEM:S-1-5-18:18: - Group
SYSTEM:*:18:544:,S-1-5-18:: - passwd
Whenever I run 'ssh-host-config' I receive no echo from the terminal,
Administrator:unused_by_nt/2000/xp:500:513:U-XEN-VM64\Administrator,S-1-5-21-693619687-569673921-3156715980-500:/home/Administrator:/bin/switch
Guest:unused_by_nt/2000/xp:501:513:U-XEN-VM64\Guest,S-1-5-21-693619687-569673921-3156715980-501:/home/Guest:/bin/switch
scadmin:unused_by_nt/2000/xp:1006:513:scadmin,U-XEN-VM64\scadmin,S-1-5-21-693619687-569673921-3156715980-1006:/home/scadmin:/bin/switch
SUPPORT_388945a0:unused_by_nt/2000/xp:1001:513:CN=Microsoft
Corporation,L=Redmond,S=Washington,C=US,U-XEN-VM64\SUPPORT_388945a0,S-1-5-21-693619687-569673921-3156715980-1001:/home/SUPPORT_388945a0:/bin/switch
Post by Thorsten Kampe
/bin/mkpasswd -l -c > /etc/passwd
/bin/mkgroup -> l -c > /etc/group
passwd files looks good now, moved passwd file and re-ran
./000-cygwin-post-install.sh
Still when I 'net start sshd' I still receive the same error, also
when I try to re-instantiate the service in windows..
On Thu, Aug 11, 2011 at 11:53 AM, Thorsten Kampe
Post by Thorsten Kampe
* Gary (Thu, 11 Aug 2011 11:25:04 -0700)
Post by Gary
I've tried re-running the 000-cygwin-post-install.sh & receive no echo
from the terminal, I've moved the passwd file (from my understanding
outside the directory before running the post-install). My passwd file
sshd:*:27:27:sshd privsep:/var/empty:/sbin/nologin
I can't find a passwd-grp.sh script.
Both files should actually be in /etc/postinstall and end in .sh.done
Just try running "/bin/mkpasswd -l -c > /etc/passwd" and "/bin/mkgroup -
l -c > /etc/group" manually.
Post by Gary
What should my passwd file look like?
On a Windows 7 non domain machine like this for instance (mind you, line
Administrator:unused:500:513:U-hombre\Administrator,S-1-5-21-252259350-
3027294242-313109463-500:/home/Administrator:/bin/bash
Guest:unused:501:513:U-hombre\Guest,S-1-5-21-252259350-3027294242-
313109463-501:/home/Guest:/bin/bash
HomeGroupUser$:unused:1002:513:HomeGroupUser$,U-hombre\HomeGroupUser$,S-
1-5-21-252259350-3027294242-313109463-1002:/home/HomeGroupUser
$:/bin/bash
thorsten:unused:1001:513:U-hombre\thorsten,S-1-5-21-252259350-
3027294242-313109463-1001:/home/thorsten:/bin/bash
__vmware_user__:unused:1004:513:__vmware_user__,U-hombre
\__vmware_user__,S-1-5-21-252259350-3027294242-313109463-1004:/home/
__vmware_user__:/bin/bash
Thorsten
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Gary Phelps
--
Gary Phelps
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-15 21:46:29 UTC
Permalink
Post by Gary
Yeah that was a typo.. So my /etc/passwd& /etc/group file both have
SYSTEM:S-1-5-18:18: - Group
SYSTEM:*:18:544:,S-1-5-18:: - passwd
Whenever I run 'ssh-host-config' I receive no echo from the terminal,
<snip>
Post by Gary
Any ideas?
Well, that's not right. There must be something in your environment
that's getting in the way. Check your TERM value.

Here's the start of output from 'ssh-host-config' on my machine:

$ ssh-host-config
*** Info: Generating /etc/ssh_host_key
*** Info: Generating /etc/ssh_host_rsa_key
*** Info: Generating /etc/ssh_host_dsa_key
*** Info: Generating /etc/ssh_host_ecdsa_key
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
ME.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Info: Note that creating a new user requires that the current account have
*** Info: Administrator privileges. Should this script attempt to create a
*** Query: new local account 'sshd'? (yes/no) yes
*** Info: Updating /etc/sshd_config file
.
.
.
--
Larry

_____________________________________________________________________

A: Yes.
Post by Gary
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-15 23:11:37 UTC
Permalink
Yup, that's the output I get on my 32-bit windows machine, I'm not
seeing any value in environment for 'TERM'.
Are you referring to PATH?
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\cygwin\bin;c:\cygwin\usr\bin;c:\cygwin\sbin;c:\cygwin\usr\sbin;C:\Program
Files (x86)\OpenSSH\bin
Post by Gary
I'm having issues getting SSHD working on Windows Server 2003 64 bit.
I've properly installed SSHD as a service but I receive the following
'The SSHD service on Local Computer started and then stopped.  Some
services stop automatically if they have no work to do, for example,
The Performance Logs and Alerts service'.
Also when I execute the following 'net start sshd' from the cygwin
'The SSHD service is starting.  The SSHD service could not be started.
 The service did not report an error'.
Anything would help, thanks!
- Gary
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-16 03:57:14 UTC
Permalink
Post by Gary
Yup, that's the output I get on my 32-bit windows machine, I'm not
seeing any value in environment for 'TERM'.
This should be set to "cygwin" if you're running from 'cygwin.bat'.
Post by Gary
Are you referring to PATH?
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\cygwin\bin;c:\cygwin\usr\bin;c:\cygwin\sbin;c:\cygwin\usr\sbin;C:\Program
Files (x86)\OpenSSH\bin
That's certainly an important part of your environment and I do believe
that you've hit this one right on the nose! You have an alternate
installation of OpenSSH that's getting in your way. Uninstall it and
try again. I think you'll have better luck. If not, you may find it's
easiest/quickest to just wipe your Cygwin installation and reinstall.
If that's too drastic for you, you'll want to go through
'ssh-host-config' manually to make sure that everything is properly
configured.
--
Larry

_____________________________________________________________________

A: Yes.
Post by Gary
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-16 22:25:02 UTC
Permalink
Sounds good I'll take those steps;

In the meantime my cygwin.bat file looks like this:
[at]echo off (note: at sign removed because it was causing false
positives on an email filter)
CYGWIN=binmode tty ntsec
C:
chdir C:\Cygwin\bin

bash --login -i
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-17 02:24:10 UTC
Permalink
Post by Gary
Sounds good I'll take those steps;
[at]echo off (note: at sign removed because it was causing false
positives on an email filter)
CYGWIN=binmode tty ntsec
chdir C:\Cygwin\bin
bash --login -i
FWIW, you don't need any of the values you've added to the CYGWIN
environment variable. They are all deprecated or will be in the cygwin
1.7.10 package. Their existence, however, should not cause any problems.
--
Larry

_____________________________________________________________________

A: Yes.
Post by Gary
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-19 21:53:27 UTC
Permalink
I've re-installed cygwin on a fresh virtual machine (offline install)
and have tried running:
'ssh-host-config' -- still no echo from the terminal
'cygrunsrv -S sshd' -- cygrunsrv: Error starting a
service:OpenService: Win32 error 1060:The specified service does not
exist as an installed service.
'net start sshd' -- the service name is invalid. More help is
available by typing NET HELPMSG 2185.

My environment variables below:
Variable:Home
Value: C:\
Variable: Path
Value: C:\cygwin\bin
Variable:TEMP
Value: %USERPROFILE%\Local Settings\Temp
Variable:TMP
Value: %USERPROFILE%\Local Settings\Temp

I have re-created the passwd file and group file via our previous
conversations. What other steps could I take to ensure SSHD to run as
a service on Windows Server 2003 r2 64bit? Any other ideas?
Post by Larry Hall (Cygwin)
Post by Gary
Sounds good I'll take those steps;
[at]echo off   (note: at sign removed because it was causing false
positives on an email filter)
CYGWIN=binmode tty ntsec
chdir C:\Cygwin\bin
bash --login -i
FWIW, you don't need any of the values you've added to the CYGWIN
environment variable.  They are all deprecated or will be in the cygwin
1.7.10 package.  Their existence, however, should not cause any problems.
--
Larry
_____________________________________________________________________
A: Yes.
Post by Gary
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-22 15:15:09 UTC
Permalink
Post by Gary
I've re-installed cygwin on a fresh virtual machine (offline install)
'ssh-host-config' -- still no echo from the terminal
Typing 'set -x' into the 'bash' shell before running the above might provide
some helpful debugging feedback info for you.
Post by Gary
'cygrunsrv -S sshd' -- cygrunsrv: Error starting a
service:OpenService: Win32 error 1060:The specified service does not
exist as an installed service.
'net start sshd' -- the service name is invalid. More help is
available by typing NET HELPMSG 2185.
Not surprising since 'ssh-host-config' didn't run/run correctly.
Post by Gary
Variable:Home
Value: C:\
Remove HOME. You don't need it.
Post by Gary
Variable: Path
Value: C:\cygwin\bin
You should have a little more than just this. Windows system paths should
also be in there. Did you edit the path?
Post by Gary
Variable:TEMP
Value: %USERPROFILE%\Local Settings\Temp
Variable:TMP
Value: %USERPROFILE%\Local Settings\Temp
Remove these.
Post by Gary
I have re-created the passwd file and group file via our previous
conversations. What other steps could I take to ensure SSHD to run as
a service on Windows Server 2003 r2 64bit? Any other ideas?
I don't have time to check through the archives to see if we've been
over this route but it seems to me like we need to look at your
configuration. Read and follow the instructions found at this link:

<http://cygwin.com/problems.html>
--
Larry

_____________________________________________________________________

A: Yes.
Post by Gary
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-22 17:12:25 UTC
Permalink
Doing a 'set -x' in my terminal window only outputted:
'+ssh-host-config' with no other information.

Here is the actual "path" value inside the 'path' variable in my case:
C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support
Tools\;C:\Program Files (x86)\Windows Resource
Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program
Files (x86)\Java\jre6\bin;C:\usr\bin

Attached is the cygcheck.out ran by "cygcheck -s -v -r >
cygcheck.out". There is a warning stating that there are multiple
cygwin1.dll files in my path, I check and there are only one after
grepping it out:
-rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll

Thanks for your help!
Post by Larry Hall (Cygwin)
Post by Gary
I've re-installed cygwin on a fresh virtual machine (offline install)
'ssh-host-config' -- still no echo from the terminal
Typing 'set -x' into the 'bash' shell before running the above might provide
some helpful debugging feedback info for you.
Post by Gary
'cygrunsrv -S sshd'  -- cygrunsrv: Error starting a
service:OpenService:  Win32 error 1060:The specified service does not
exist as an installed service.
'net start sshd' -- the service name is invalid.  More help is
available by typing NET HELPMSG 2185.
Not surprising since 'ssh-host-config' didn't run/run correctly.
Post by Gary
Variable:Home
Value: C:\
Remove HOME.  You don't need it.
Post by Gary
Variable: Path
Value: C:\cygwin\bin
You should have a little more than just this.  Windows system paths should
also be in there.  Did you edit the path?
Post by Gary
Variable:TEMP
Value: %USERPROFILE%\Local Settings\Temp
Variable:TMP
Value: %USERPROFILE%\Local Settings\Temp
Remove these.
Post by Gary
I have re-created the passwd file and group file via our previous
conversations.  What other steps could I take to ensure SSHD to run as
a service on Windows Server 2003 r2 64bit?  Any other ideas?
I don't have time to check through the archives to see if we've been
over this route but it seems to me like we need to look at your
<http://cygwin.com/problems.html>
--
Larry
_____________________________________________________________________
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-22 20:39:26 UTC
Permalink
Post by Gary
'+ssh-host-config' with no other information.
C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support
Tools\;C:\Program Files (x86)\Windows Resource
Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program
Files (x86)\Java\jre6\bin;C:\usr\bin
Attached is the cygcheck.out ran by "cygcheck -s -v -r>
cygcheck.out". There is a warning stating that there are multiple
cygwin1.dll files in my path, I check and there are only one after
-rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll
Thanks for your help!
There's a few things here that you should clean-up:

* Your path points to a non-Cygwin perl. Please either remove that
installation or remove the install directory from your path.
* You have installed Cygwin multiple times on this machine. Can
you create a new installation where you only install Cygwin once?
* OpenSSH is one of these installations. You are virtually guaranteed
of a non-working 'sshd' if you install this 3rd party app. If
you want to use Cygwin's 'sshd', don't install OpenSSH. If you
prefer to use OpenSSH, install it and not Cygwin's 'openssh' package.
Better yet, don't install Cygwin at all in this case.
--
Larry

_____________________________________________________________________

A: Yes.
Post by Gary
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Gary
2011-08-23 18:54:44 UTC
Permalink
Isn't openssh necessary to run 'ssh-host-config'? I've re-installed a
fresh instance of cygwin without openssh (only cygrunsrv). Attached
is the output from cygcheck.
Post by Gary
'+ssh-host-config' with no other information.
C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support
Tools\;C:\Program Files (x86)\Windows Resource
Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program
Files (x86)\Java\jre6\bin;C:\usr\bin
Attached is the cygcheck.out ran by "cygcheck -s -v -r>
cygcheck.out".  There is a warning stating that there are multiple
cygwin1.dll files in my path, I check and there are only one after
-rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll
Thanks for your help!
* Your path points to a non-Cygwin perl.  Please either remove that
 installation or remove the install directory from your path.
* You have installed Cygwin multiple times on this machine.  Can
 you create a new installation where you only install Cygwin once?
* OpenSSH is one of these installations.  You are virtually guaranteed
 of a non-working 'sshd' if you install this 3rd party app.  If
 you want to use Cygwin's 'sshd', don't install OpenSSH.  If you
 prefer to use OpenSSH, install it and not Cygwin's 'openssh' package.
 Better yet, don't install Cygwin at all in this case.
--
Larry
--
Gary Phelps
Larry Hall (Cygwin)
2011-08-24 02:35:00 UTC
Permalink
Post by Gary
Post by Larry Hall (Cygwin)
Post by Gary
'+ssh-host-config' with no other information.
C:\Perl\site\bin;C:\Perl\bin;C:\Program Files (x86)\Support
Tools\;C:\Program Files (x86)\Windows Resource
Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\Program
Files (x86)\Java\jre6\bin;C:\usr\bin
Attached is the cygcheck.out ran by "cygcheck -s -v -r>
cygcheck.out". There is a warning stating that there are multiple
cygwin1.dll files in my path, I check and there are only one after
-rwxr-xr-x 1 Administrator Administrators 2666500 Mar 29 08:11 cygwin1.dll
Thanks for your help!
* Your path points to a non-Cygwin perl. Please either remove that
installation or remove the install directory from your path.
* You have installed Cygwin multiple times on this machine. Can
you create a new installation where you only install Cygwin once?
* OpenSSH is one of these installations. You are virtually guaranteed
of a non-working 'sshd' if you install this 3rd party app. If
you want to use Cygwin's 'sshd', don't install OpenSSH. If you
prefer to use OpenSSH, install it and not Cygwin's 'openssh' package.
Better yet, don't install Cygwin at all in this case.
Isn't openssh necessary to run 'ssh-host-config'? I've re-installed a
fresh instance of cygwin without openssh (only cygrunsrv). Attached
is the output from cygcheck.
You had installed <http://sshwindows.sourceforge.net/> in the previous
virtual machine. This is incompatible with Cygwin's installation.
That's why I recommended choosing it or Cygwin and its package. So
if you're content to use Cygwin's package, you can install openssh
via setup.exe now.

I hadn't noticed that you are using Xen as the basis for your
virtualization. Be aware that Xen has had problems in the past supporting
Cygwin. I don't know if those issues have been resolved in Xen or not.
But if you continue to experience trouble under Xen, you may want to try
a different product like VirtualBox, VMWare, etc. That may help you.
--
Larry

_____________________________________________________________________

A: Yes.
Post by Gary
Q: Are you sure?
Post by Larry Hall (Cygwin)
A: Because it reverses the logical flow of conversation.
Post by Gary
Q: Why is top posting annoying in email?
Gary
2011-08-19 21:58:44 UTC
Permalink
I've re-installed cygwin on a fresh virtual machine (offline install)
and have tried running:
'ssh-host-config' -- still no echo from the terminal
'cygrunsrv -S sshd' -- cygrunsrv: Error starting a service:
OpenService: Win32 error 1060:The specified service does not exist as
an installed service.
'net start sshd' -- The service name is invalid. More help is
available by typing NET HELPMSG 2185.

My environment variables below:
Variable:Home
Value: C:\
Variable: Path
Value: C:\cygwin\bin
Variable:TEMP
Value: %USERPROFILE%\Local Settings\Temp
Variable:TMP
Value: %USERPROFILE%\Local Settings\Temp

I have re-created the passwd file and group file via our previous
conversations. What other steps could I take to ensure SSHD to run as
a service on Windows Server 2003 r2 64bit? Any other ideas?
Post by Larry Hall (Cygwin)
Post by Gary
Sounds good I'll take those steps;
[at]echo off   (note: at sign removed because it was causing false
positives on an email filter)
CYGWIN=binmode tty ntsec
chdir C:\Cygwin\bin
bash --login -i
FWIW, you don't need any of the values you've added to the CYGWIN
environment variable.  They are all deprecated or will be in the cygwin
1.7.10 package.  Their existence, however, should not cause any problems.
--
Larry
--
Gary Phelps
Loading...