delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/24/09:08:08

X-Recipient: archive-cygwin AT delorie DOT 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 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Struggling to setup sshd with Windows Vista
In-Reply-To: <96c450350712231819x121d06f9o36470e6e935a43bc@mail.gmail.com>
MIME-Version: 1.0
References: <96c450350712230222s3549d224m75974cd082bf71a3 AT mail DOT gmail DOT com> <96c450350712230448q14dc0ac3s34e85de08d9b6e9f AT mail DOT gmail DOT com> <96c450350712231207g36bcc392w38c92bf52a52802c AT mail DOT gmail DOT com> <96c450350712231217o456e04c4ofb65e23ef14485c9 AT mail DOT gmail DOT com> <96c450350712231819x121d06f9o36470e6e935a43bc AT mail DOT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019