From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: Using tramp from Cygwin Emacs Date: Thu, 05 Nov 2009 17:54:03 -0600 Organization: Still searching... Message-ID: <87iqdojzok.fsf@newsguy.com> 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 X-Trace: ger.gmane.org 1257465311 24324 80.91.229.12 (5 Nov 2009 23:55:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2009 23:55:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 06 00:55:04 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 1N6CAQ-0003ss-9S for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Nov 2009 00:55:04 +0100 Original-Received: from localhost ([127.0.0.1]:56038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6CAP-0001dQ-Jz for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 18:55:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6C9x-0001bx-RZ for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:54:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6C9s-0001Sz-Vo for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:54:33 -0500 Original-Received: from [199.232.76.173] (port=40778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6C9s-0001Se-Oc for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:54:28 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:54350) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N6C9s-0005gW-47 for help-gnu-emacs@gnu.org; Thu, 05 Nov 2009 18:54:28 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6C9p-0003cI-JP for help-gnu-emacs@gnu.org; Fri, 06 Nov 2009 00:54:25 +0100 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 00:54:25 +0100 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 00:54:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:bP3sCfUzFeM3lu7tY8mC76xdQY8= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:69527 Archived-At: "KARR, DAVID (ATTCINW)" writes: [...] >> 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 [...] > 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. You never said what OS this is taking place on, but I guess a windows of some sort? If so, the OS may have a different idea of $HOME than does cygwin. Have you set the HOME variable on windows? On Cygwin? I guess you could try a windows command shell and type `echo %home%' and a cygwin bash shell and type `echo $HOME' to see if they match. (If you don't know how to set it on windows ask back to this thread.)