From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using tramp from Cygwin Emacs
Date: Thu, 05 Nov 2009 17:54:03 -0600 [thread overview]
Message-ID: <87iqdojzok.fsf@newsguy.com> (raw)
In-Reply-To: E0529A8FFC2C9143A5F1BB9A89101D06072820E8@BD01MSXMB018.US.Cingular.Net
"KARR, DAVID (ATTCINW)" <dk068x@att.com> 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>
> HostName <hostname>
> User <principaltouse>
>
> 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.)
next prev parent reply other threads:[~2009-11-05 23:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 0:36 Using tramp from Cygwin Emacs KARR, DAVID (ATTCINW)
2009-11-05 11:28 ` Michael Albinus
2009-11-05 19:00 ` Eli Zaretskii
2009-11-05 19:13 ` KARR, DAVID (ATTCINW)
2009-11-05 19:24 ` Eli Zaretskii
2009-11-05 21:23 ` Harry Putnam
2009-11-05 23:02 ` KARR, DAVID (ATTCINW)
2009-11-05 23:54 ` Harry Putnam [this message]
2009-11-06 0:02 ` KARR, DAVID (ATTCINW)
2009-11-06 3:17 ` Harry Putnam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iqdojzok.fsf@newsguy.com \
--to=reader@newsguy.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.