X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: "Brian Wilson" To: cygwin AT cygwin DOT com Subject: Re: SSH - Can't Login Date: Sun, 31 Oct 2010 12:12:06 -0500 Message-Id: <20101031170244.M19842@ds.net> In-Reply-To: References: X-OriginatingIP: 65.12.174.114 (wilson) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com > On 31 October 2010 16:45, James Broadhead wrote: > > I also have this problem; > > Context? > > >>> ssh james AT 192 DOT 168 DOT 1 DOT 15 > > usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] > >           [-D [bind_address:]port] [-e escape_char] [-F configfile] > >           [-I pkcs11] [-i identity_file] > >           [-L [bind_address:]port:host:hostport] > >           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] > >           [-R [bind_address:]port:host:hostport] [-S ctl_path] > >           [-W host:port] [-w local_tun[:remote_tun]] > >           [user@]hostname [command] > > > >>> ssh -p 1022 james AT localhost [UTF-8?]> > Bad port '�y"a' > > > > Here are strace output for: > > - OpenSSH_5.6p1, OpenSSL 0.9.8l 5 Nov 2009  - > > http://obviouslies.net/share/strace-new-ssh > > and > > - OpenSSH_5.5p1, OpenSSL 0.9.8o 01 Jun 2010  - > > http://obviouslies.net/share/strace-old-ssh > > > > SFVs of my cygwin1.dll for the old and new environments: > > cygwin1-new.dll B6328143 > > cygwin1-old.dll   DFB07A25 > > > > Anything else that I can add that would be useful? > > http://cygwin.com/problems.html In my case the context was that suddenly ssh stopped working and would only give the usage message no matter what I tried. I ran the "cygcheck -svr" and noted that I did not have the latest Cygwin (1.7.7) installed even though running setup said there was nothing needed. I confirmed this by opening a bash shell and running "uname -a" command. I rebooted my PC in safe mode with networking and ran setup with cygwin and cygserver set to reinstall. I rebooted and opened a bash shell again and reran the uname -a command to confirm the update was working. I then ran the ssh and got the expected login prompts. Hope this helped. Brian S. Wilson -- 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