Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <006c01c0fff5$5922d7e0$09fea8c0@3hi25.flashcom.com> From: "Clark Sims" To: Subject: Corrected: How I got ssh to work, and sshd to work from the command line on NT Date: Thu, 28 Jun 2001 12:11:18 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Loop-Detect: 1 >I left out one step. I forgot to mention editing user rights. Here is the >corrected install: > >I have had a number of problems getting ssh/sshd to work and I have posted >the problems in this mail list. I have everything working now, (except that >I havn't installed sshd as a service). The steps where: > >1) I deleted my cygwin directory, and removed cygwin from the destop. >2) I reinstalled from the internet http://sources.redhat.com/cygwin/ >3) I had to create the home and user names by hand >mkdir /home >mkdir /home/Administrator >4) I opened the file /usr/doc/Cygwin/openssh-2.9p1.README in emacs >5) following the instructions I ran: > /usr/bin/ssh-host-config -d > /usr/bin/ssh-user-config -d > >I included the -d option becuase initially the files did not run correctly. >I had to go back and create the home directory before I could get them to >run correctly. > >5a) Edit the user rights: > >The following commands brought up the user right management screen: > >Start, ProgramTools, UserManager >Policy, UserRights > >I then added: > "Act as part of the operating system" > "Replace process level token" > "Increase quotas" > "Logon as a service". > >As per the instructions. > >6) from a bash box >cd /usr/sbin >./sshd.exe -d > >7) from another bash box >ssh -l Administrator localhost > >and it worked. I could log on and start a bash session. > >8) I tried adding the appropriate public keys to the authorized_keys file in >the /home/Administrator/.ssh directory, but to no avail, I could not log in >from another machine. >In order to log in from another machine I had to change the sshd_config "To >install for logon to different user accounts" > >diff sshd_config sshd_config~ > >39c39 >< RSAAuthentication no >--- >> RSAAuthentication yes >42c42 >< PasswordAuthentication yes >--- >> PasswordAuthentication no > >9) from a bash box on the first nt box >./sshd.exe -d > >10) from a bash box on another nt box >ssh -l Administrator first.comp.ip.address > >where first.comp.ip.address, is the first computers ip address > >11) I am then prompted for a pass word, and I can log in > >12) from a bash box on the first nt box >./sshd.exe -d > >13) from a linux box >ssh -l Administrator first.comp.ip.address > >I could then log in! Linux was talking to NT! > >14) I forgot to mention that the reverse direction, using ssh to log onto a >linux box was easy. This works with no problems. > >It looks like everything is working perfect! > > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/