[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Using tramp from Cygwin Emacs
From: |
KARR, DAVID (ATTCINW) |
Subject: |
RE: Using tramp from Cygwin Emacs |
Date: |
Thu, 5 Nov 2009 16:02:54 -0800 |
> -----Original Message-----
> From: help-gnu-emacs-bounces+dk068x=att.com@gnu.org [mailto:help-gnu-
>
> "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.)
Cygwin runs on something besides Windows? I didn't bother to mention it
because I thought it was obvious.
I'm putting the .ssh directory in my Cygwin $HOME. The Windows %HOME%
does not match this, but that shouldn't matter.
- Using tramp from Cygwin Emacs, KARR, DAVID (ATTCINW), 2009/11/04
- Re: Using tramp from Cygwin Emacs, Michael Albinus, 2009/11/05
- Re: Using tramp from Cygwin Emacs, Eli Zaretskii, 2009/11/05
- RE: Using tramp from Cygwin Emacs, KARR, DAVID (ATTCINW), 2009/11/05
- Re: Using tramp from Cygwin Emacs, Eli Zaretskii, 2009/11/05
- Re: Using tramp from Cygwin Emacs, Harry Putnam, 2009/11/05
- RE: Using tramp from Cygwin Emacs, KARR, DAVID (ATTCINW), 2009/11/05
- Re: Using tramp from Cygwin Emacs, Harry Putnam, 2009/11/05
- RE: Using tramp from Cygwin Emacs,
KARR, DAVID (ATTCINW) <=
- Re: Using tramp from Cygwin Emacs, Harry Putnam, 2009/11/05