From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "KARR, DAVID (ATTCINW)" Newsgroups: gmane.emacs.help Subject: RE: Using tramp from Cygwin Emacs Date: Thu, 5 Nov 2009 15:02:11 -0800 Message-ID: References: <4AF2B6E1.7010202@gmx.de> <83hbt8bxv0.fsf@gnu.org> <87ws24k6o5.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257462183 15500 80.91.229.12 (5 Nov 2009 23:03:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2009 23:03:03 +0000 (UTC) To: "Harry Putnam" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 06 00:02:56 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N6BLz-000754-CC for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Nov 2009 00:02:55 +0100 Original-Received: from localhost ([127.0.0.1]:35120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6BLz-0004YL-1J for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 18:02:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6BLb-0004VR-1i for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:02:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6BLW-0004Nl-89 for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:02:30 -0500 Original-Received: from [199.232.76.173] (port=33774 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6BLV-0004NR-Td for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:02:26 -0500 Original-Received: from mail121.messagelabs.com ([216.82.242.3]:55708) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N6BLV-00065X-Bs for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:02:25 -0500 X-VirusChecked: Checked X-Env-Sender: dk068x@att.com X-Msg-Ref: server-15.tower-121.messagelabs.com!1257462142!29362931!1 X-StarScan-Version: 6.1.3; banners=-,-,- X-Originating-IP: [144.160.112.25] Original-Received: (qmail 14637 invoked from network); 5 Nov 2009 23:02:23 -0000 Original-Received: from sbcsmtp3.sbc.com (HELO tlph064.enaf.dadc.sbc.com) (144.160.112.25) by server-15.tower-121.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 5 Nov 2009 23:02:23 -0000 Original-Received: from enaf.dadc.sbc.com (localhost.localdomain [127.0.0.1]) by tlph064.enaf.dadc.sbc.com (8.14.3/8.14.3) with ESMTP id nA5N2L1J010221; Thu, 5 Nov 2009 17:02:22 -0600 Original-Received: from td03xsmtp005.US.Cingular.Net (td03xspare20-new.us.cingular.net [135.179.64.44] (may be forged)) by tlph064.enaf.dadc.sbc.com (8.14.3/8.14.3) with ESMTP id nA5N2H9q010068; Thu, 5 Nov 2009 17:02:18 -0600 Original-Received: from BD01XSMTP003.US.Cingular.Net ([135.163.18.44]) by td03xsmtp005.US.Cingular.Net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 5 Nov 2009 17:02:17 -0600 Original-Received: from BD01MSXMB018.US.Cingular.Net ([135.214.27.52]) by BD01XSMTP003.US.Cingular.Net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 5 Nov 2009 15:02:11 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-Reply-To: <87ws24k6o5.fsf@newsguy.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using tramp from Cygwin Emacs Thread-Index: AcpeYCLApsVPa6xaT9m3YJUeQMC4NgACoEmQ X-OriginalArrivalTime: 05 Nov 2009 23:02:11.0778 (UTC) FILETIME=[02135220:01CA5E6C] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69526 Archived-At: > -----Original Message----- > From: help-gnu-emacs-bounces+dk068x=3Datt.com@gnu.org = [mailto:help-gnu- > emacs-bounces+dk068x=3Datt.com@gnu.org] On Behalf Of Harry Putnam > Sent: Thursday, November 05, 2009 1:23 PM > To: help-gnu-emacs@gnu.org > Subject: Re: Using tramp from Cygwin Emacs >=20 > "KARR, DAVID (ATTCINW)" writes: >=20 > > I believe I've tried using the Cygwin ssh, but I appear to get the > same > > result, even bypassing tramp. I tried just using "eshell" and doing > > "ssh " (and I'm sure that this is using Cygwin's openssh > > package). After entering the password, it just redisplayed the > password > > prompt. I'm using the same credentials that are working fine with > > "putty". It seems like this isn't an Emacs problem, or even a Cygwin > > problem (I can repeat the same symptom just using Putty's Plink), but > > perhaps something about the configuration of the SSH server. I don't > > know enough about it to be sure, but my testing seems to point to > that. >=20 > You might use the ssh with -vv and see something informative. I've > had problems where the remote shell login hands out stuff ssh does not > like. And might even cause it to fail. Its a slim chance for sure but > might give a clue of somekind. Well, this didn't directly help, but it made me think about this a little more, and let me to a clue. The login name I need to use on the remote box is different from my local principal. I thought I was configuring it correctly to use that different principal, but apparently not. When I tried manually specifying that principal on the tramp path, it worked fine. So, in order to make it use that different principal automatically, I had created $HOME/.ssh/config and chmoded 0700 on the "config" file. The contents of the file looked like this: Host HostName User I also set "tramp-default-method" to "ssh". I also used "tramp-set-completion-function", using the example in the info to make it parse my $HOME/.ssh/config file, so the resulting value of "tramp-completion-function-alist" is: (("ssh" (tramp-parse-sconfig "~/.ssh/config")) ("plinkx" (tramp-parse-putty "HKEY_CURRENT_USER\\Software\\SimonTatham\\PuTTY\\Sessions")) ("sudo" (tramp-parse-passwd "/etc/passwd")) ("su" (tramp-parse-passwd "/etc/passwd")) ("telnet" (tramp-parse-hosts "/etc/hosts")) ("ftp" (tramp-parse-netrc "~/.netrc"))) So, for some reason, if I don't manually specify the principal to use, it's not getting the user to use from my ".ssh/config" file.