This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't "ssh localhost" - password not accepted


ppmoore wrote:
Hello,

I followed these instructions to install ssh on Cygwin, but they appear to
be broken:
  http://www.nabble.com/ssh-and-SYSTEM-tf1863995.html#a5092524


Don't complain to us about that.  Complain to the site's owner.  This list
doesn't support 3rd-party anything.  If you're having trouble after using
anything not associated with the cygwin.com site, your best bet is to
proceed right back to the source of the information you used and query
them.


I haven't been able to find any more detailed instructions anywhere else, so
here I am...


Cygwin supported installation information is found in /usr/share/doc/Cygwin.
There's a README there for openssh.  You should read and follow that to
configure openssh.  If you have problems, first start by uninstalling
openssh and get rid of any files you touched in the process.  Then try
installing again, following the configuration info provided in the README.


I downloaded the openssh package and installed. I added the CYGWIN="ntsec tty" EV to Windows
I executed ssh-host-config, answering yes to each option.
I executed "net start sshd"
I imported the windows passwords using "mkpasswd -cl > /etc/passwd" and
"mkgroup --local > /etc/group", although the mkgroup command didn't work
because of an access rights problem. This should import my Windows password,
right?


Import?  No.  'mkpasswd' creates and '/etc/passwd' with your Windows SID
info so that your Cygwin UID can be related back to the SID.  No passwords
are "imported".


I then started sshd using "net start sshd", and it starts up:
  The CYGWIN sshd service is starting.
  The CYGWIN sshd service was started successfully.

I then stopped sshd, and tried starting it manually, using "/usr/sbin/sshd
-d -e -D", to attempt to view logging whole using "ssh localhost", and I get
the message:
debug1: sshd version OpenSSH_4.4p1
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.


Have I missed something?


Yes.  Don't start Cygwin from the command line as you.  If you
*must* run it from the command line and you're running on XP or less,
Google the cygwin site for "SYSTEM-owned shell".  This will tell you how
to open a shell running as SYSTEM so you can safely start 'ssh' the
same way as it is started as a service.


-- 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]