X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <96c450350712240607n182da9a1ybd6960ab618f067f@mail.gmail.com>
Date: Mon, 24 Dec 2007 08:07:28 -0600
From: "Kevin Hilton" <kevhilton@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Struggling to setup sshd with Windows Vista
In-Reply-To: <96c450350712231819x121d06f9o36470e6e935a43bc@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <96c450350712230222s3549d224m75974cd082bf71a3@mail.gmail.com> 	 <96c450350712230448q14dc0ac3s34e85de08d9b6e9f@mail.gmail.com> 	 <96c450350712231207g36bcc392w38c92bf52a52802c@mail.gmail.com> 	 <96c450350712231217o456e04c4ofb65e23ef14485c9@mail.gmail.com> 	 <96c450350712231819x121d06f9o36470e6e935a43bc@mail.gmail.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thanks for the last tip about deleting the sshd user.  I did that and
know everything works.

Just to summarize for anyone who is trying to get this working on Windows Vista

Open two cygwin shells - one in Administrator mode (right click->Run
Administrator mode), the other as a normal user

Uninstall Steps (From previous attempted failed installations)

In Adminstrator shell
1. net stop sshd
2. cygrunsrv -R sshd
3. net user
    Delete any user listed like sshd or sshd_server.  The following
syntax is to be used:
    net user sshd /DELETE
4. rm -R /etc/ssh*
5. mkpasswd -cl > /etc/passwd
6. mkgroup --local > /etc/group

In User shell
1. cd ~
2. rm -R .ssh

Installation Steps

In Administrator shell
1. ssh-host-config -y
2. net start sshd

In User shell
1. ssh-user-config (Answer questions as appropriate to your situation)
2. Test connection:
     ssh -vvv localhost

Things you don't need to do:
1. Turn off UAC
2. Add/Delete Users through any other interface
3. Change file permissions (on /var/empty for example)

Hopefully this will help someone -- A lot of threads out there
complaining of problems on Vista

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

