public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Can't connect to ssh host with Emacs tramp
@ 2018-01-04 22:42 David Karr
  2018-01-05  1:15 ` Ken Brown
  0 siblings, 1 reply; 6+ messages in thread
From: David Karr @ 2018-01-04 22:42 UTC (permalink / raw)
  To: The Cygwin Mailing List

I've reviewed some of the Emacs tramp documentation, but I'm not sure
what the issue is.

If I'm using Cygwin, I don't need the putty components for this, do I?

When I attempt to open a text file in my homedir on a remote host,
which I can ssh to (passwordless) from the shell, it just times out.

The *Messages* buffer shows this (fqhn is the hostname):
------------------
Tramp: Opening connection for fqhn using scp...
Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’
Tramp: Waiting for prompts from remote shell...
Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details
Tramp: Waiting for prompts from remote shell...failed
Tramp: Opening connection for fqhn using scp...failed
-----------------------

There doesn't appear to be a buffer named "*tramp/scp fqhn*".

--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't connect to ssh host with Emacs tramp
  2018-01-04 22:42 Can't connect to ssh host with Emacs tramp David Karr
@ 2018-01-05  1:15 ` Ken Brown
  2018-01-05 16:37   ` David Karr
  0 siblings, 1 reply; 6+ messages in thread
From: Ken Brown @ 2018-01-05  1:15 UTC (permalink / raw)
  To: cygwin

On 1/4/2018 5:42 PM, David Karr wrote:
> I've reviewed some of the Emacs tramp documentation, but I'm not sure
> what the issue is.
> 
> If I'm using Cygwin, I don't need the putty components for this, do I?

No, I make ssh connections through Emacs tramp without putty.

> When I attempt to open a text file in my homedir on a remote host,
> which I can ssh to (passwordless) from the shell, it just times out.
> 
> The *Messages* buffer shows this (fqhn is the hostname):
> ------------------
> Tramp: Opening connection for fqhn using scp...
> Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
> ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’
> Tramp: Waiting for prompts from remote shell...
> Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details
> Tramp: Waiting for prompts from remote shell...failed
> Tramp: Opening connection for fqhn using scp...failed
> -----------------------
> 
> There doesn't appear to be a buffer named "*tramp/scp fqhn*".

Sorry, I don't know enough about tramp to diagnose this.  Maybe it would 
help if you would say exactly what commands you gave.  And does the 
problem occur if you start with 'emacs -Q'?

Ken

--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't connect to ssh host with Emacs tramp
  2018-01-05  1:15 ` Ken Brown
@ 2018-01-05 16:37   ` David Karr
  2018-01-05 17:22     ` Ken Brown
  2018-01-05 18:35     ` George Prikhodko
  0 siblings, 2 replies; 6+ messages in thread
From: David Karr @ 2018-01-05 16:37 UTC (permalink / raw)
  To: The Cygwin Mailing List

On Thu, Jan 4, 2018 at 5:15 PM, Ken Brown <kbrown@cornell.edu> wrote:
> On 1/4/2018 5:42 PM, David Karr wrote:
>>
>> I've reviewed some of the Emacs tramp documentation, but I'm not sure
>> what the issue is.
>>
>> If I'm using Cygwin, I don't need the putty components for this, do I?
>
>
> No, I make ssh connections through Emacs tramp without putty.
>
>> When I attempt to open a text file in my homedir on a remote host,
>> which I can ssh to (passwordless) from the shell, it just times out.
>>
>> The *Messages* buffer shows this (fqhn is the hostname):
>> ------------------
>> Tramp: Opening connection for fqhn using scp...
>> Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
>> ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’
>> Tramp: Waiting for prompts from remote shell...
>> Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details
>> Tramp: Waiting for prompts from remote shell...failed
>> Tramp: Opening connection for fqhn using scp...failed
>> -----------------------
>>
>> There doesn't appear to be a buffer named "*tramp/scp fqhn*".
>
>
> Sorry, I don't know enough about tramp to diagnose this.  Maybe it would
> help if you would say exactly what commands you gave.  And does the problem
> occur if you start with 'emacs -Q'?

What "commands" am I giving?  All I'm trying to do is open a single
file on the remote host.

I'm entering "//fqhn:/home/<myuid>/.bash_profile".

I get different behavior using "emacs -Q".  I don't get a timeout
error, but I also don't think it even attempted to connect to the
remote box.  The editor view just opens with the given name, but it's
empty (it shouldn't be).  The "*Messages*" buffer doesn't indicate
that it ever tried to make a connection.  It also says "Use M-x
make-directory RET RET to create the directory and its parents".

The other frustrating issue with my full Emacs configuration is that
when I enter the second forward slash, key response vastly, and I mean
vastly, slows down. I've gone through the tramp FAQ looking for
potential performance issues, but nothing has helped.

--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't connect to ssh host with Emacs tramp
  2018-01-05 16:37   ` David Karr
@ 2018-01-05 17:22     ` Ken Brown
  2018-01-05 18:35     ` George Prikhodko
  1 sibling, 0 replies; 6+ messages in thread
From: Ken Brown @ 2018-01-05 17:22 UTC (permalink / raw)
  To: cygwin

On 1/5/2018 11:37 AM, David Karr wrote:
> On Thu, Jan 4, 2018 at 5:15 PM, Ken Brown <kbrown@cornell.edu> wrote:
>> On 1/4/2018 5:42 PM, David Karr wrote:
>>>
>>> I've reviewed some of the Emacs tramp documentation, but I'm not sure
>>> what the issue is.
>>>
>>> If I'm using Cygwin, I don't need the putty components for this, do I?
>>
>>
>> No, I make ssh connections through Emacs tramp without putty.
>>
>>> When I attempt to open a text file in my homedir on a remote host,
>>> which I can ssh to (passwordless) from the shell, it just times out.
>>>
>>> The *Messages* buffer shows this (fqhn is the hostname):
>>> ------------------
>>> Tramp: Opening connection for fqhn using scp...
>>> Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
>>> ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’
>>> Tramp: Waiting for prompts from remote shell...
>>> Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details
>>> Tramp: Waiting for prompts from remote shell...failed
>>> Tramp: Opening connection for fqhn using scp...failed
>>> -----------------------
>>>
>>> There doesn't appear to be a buffer named "*tramp/scp fqhn*".
>>
>>
>> Sorry, I don't know enough about tramp to diagnose this.  Maybe it would
>> help if you would say exactly what commands you gave.  And does the problem
>> occur if you start with 'emacs -Q'?
> 
> What "commands" am I giving?  All I'm trying to do is open a single
> file on the remote host.

Yes, but I wanted to see exactly what you typed in order to specify the 
remote file.  Sorry if I confused you by saying "commands".

> I'm entering "//fqhn:/home/<myuid>/.bash_profile".

I'm not aware of any valid Tramp syntax that starts with a double slash. 
  [On Cygwin, I think file names starting with a double slash refer to 
network files, but I don't think this should cause Emacs to invoke 
Tramp.]  See the section "Remote Files" in the Emacs manual.  You might 
find this easier than the Tramp manual.  In particular, I suggest you 
try something like

   /ssh:fqhn:/home/<myuid>/.bash_profile

or

   /ssh:<user>@fqhn:/home/<myuid>/.bash_profile

You can omit "ssh:' in emacs-25, but this won't be allowed in emacs-26, 
so you might as well get used to using it.

I'm away from home at the moment and can't easily test that I've got all 
this exactly right.

> I get different behavior using "emacs -Q".  I don't get a timeout
> error, but I also don't think it even attempted to connect to the
> remote box.  The editor view just opens with the given name, but it's
> empty (it shouldn't be).

The file you specified with the double slash syntax doesn't exist.

> The "*Messages*" buffer doesn't indicate
> that it ever tried to make a connection.  It also says "Use M-x
> make-directory RET RET to create the directory and its parents".

So you must have some customization that's changing the behavior.  You 
might have to bisect your .emacs file to find it.

Ken


--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't connect to ssh host with Emacs tramp
  2018-01-05 16:37   ` David Karr
  2018-01-05 17:22     ` Ken Brown
@ 2018-01-05 18:35     ` George Prikhodko
  2018-01-08 22:34       ` David Karr
  1 sibling, 1 reply; 6+ messages in thread
From: George Prikhodko @ 2018-01-05 18:35 UTC (permalink / raw)
  To: cygwin

Hi,

Have you tried to set in your ~/.emacs file ‘tramp-verbose’ variable?
If not, then add to the file the following line:

(setq tramp-verbose 6)

In '*debug tramp/scp remote_host_name*' buffer you'll see all interactions
between tramp, ssh and your remote host.

Good luck!

On Fri, Jan 5, 2018 at 10:37 AM, David Karr <davidmichaelkarr@gmail.com>
wrote:

> On Thu, Jan 4, 2018 at 5:15 PM, Ken Brown <kbrown@cornell.edu> wrote:
> > On 1/4/2018 5:42 PM, David Karr wrote:
> >>
> >> I've reviewed some of the Emacs tramp documentation, but I'm not sure
> >> what the issue is.
> >>
> >> If I'm using Cygwin, I don't need the putty components for this, do I?
> >
> >
> > No, I make ssh connections through Emacs tramp without putty.
> >
> >> When I attempt to open a text file in my homedir on a remote host,
> >> which I can ssh to (passwordless) from the shell, it just times out.
> >>
> >> The *Messages* buffer shows this (fqhn is the hostname):
> >> ------------------
> >> Tramp: Opening connection for fqhn using scp...
> >> Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
> >> ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’
> >> Tramp: Waiting for prompts from remote shell...
> >> Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details
> >> Tramp: Waiting for prompts from remote shell...failed
> >> Tramp: Opening connection for fqhn using scp...failed
> >> -----------------------
> >>
> >> There doesn't appear to be a buffer named "*tramp/scp fqhn*".
> >
> >
> > Sorry, I don't know enough about tramp to diagnose this.  Maybe it would
> > help if you would say exactly what commands you gave.  And does the
> problem
> > occur if you start with 'emacs -Q'?
>
> What "commands" am I giving?  All I'm trying to do is open a single
> file on the remote host.
>
> I'm entering "//fqhn:/home/<myuid>/.bash_profile".
>
> I get different behavior using "emacs -Q".  I don't get a timeout
> error, but I also don't think it even attempted to connect to the
> remote box.  The editor view just opens with the given name, but it's
> empty (it shouldn't be).  The "*Messages*" buffer doesn't indicate
> that it ever tried to make a connection.  It also says "Use M-x
> make-directory RET RET to create the directory and its parents".
>
> The other frustrating issue with my full Emacs configuration is that
> when I enter the second forward slash, key response vastly, and I mean
> vastly, slows down. I've gone through the tramp FAQ looking for
> potential performance issues, but nothing has helped.
>
> --
> 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
>
>

--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't connect to ssh host with Emacs tramp
  2018-01-05 18:35     ` George Prikhodko
@ 2018-01-08 22:34       ` David Karr
  0 siblings, 0 replies; 6+ messages in thread
From: David Karr @ 2018-01-08 22:34 UTC (permalink / raw)
  To: The Cygwin Mailing List

On Fri, Jan 5, 2018 at 10:35 AM, George Prikhodko <gp1864@gmail.com> wrote:
> Hi,
>
> Have you tried to set in your ~/.emacs file ‘tramp-verbose’ variable?
> If not, then add to the file the following line:
>
> (setq tramp-verbose 6)
>
> In '*debug tramp/scp remote_host_name*' buffer you'll see all interactions
> between tramp, ssh and your remote host.

Well, that's odd.  I decided to get back to this, and now I see that
this is working perfectly fine.  The only thing I've changed is
setting this verbose variable to 6.  However, I then changed it back
to 1 and retested, and it's still working fine.

I'm confused.

> On Fri, Jan 5, 2018 at 10:37 AM, David Karr <davidmichaelkarr@gmail.com>
> wrote:
>
>> On Thu, Jan 4, 2018 at 5:15 PM, Ken Brown <kbrown@cornell.edu> wrote:
>> > On 1/4/2018 5:42 PM, David Karr wrote:
>> >>
>> >> I've reviewed some of the Emacs tramp documentation, but I'm not sure
>> >> what the issue is.
>> >>
>> >> If I'm using Cygwin, I don't need the putty components for this, do I?
>> >
>> >
>> > No, I make ssh connections through Emacs tramp without putty.
>> >
>> >> When I attempt to open a text file in my homedir on a remote host,
>> >> which I can ssh to (passwordless) from the shell, it just times out.
>> >>
>> >> The *Messages* buffer shows this (fqhn is the hostname):
>> >> ------------------
>> >> Tramp: Opening connection for fqhn using scp...
>> >> Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
>> >> ControlPath='tramp.%C' -o ControlPersist=no -e none fqhn’
>> >> Tramp: Waiting for prompts from remote shell...
>> >> Timeout reached, see buffer ‘*tramp/scp fqhn*’ for details
>> >> Tramp: Waiting for prompts from remote shell...failed
>> >> Tramp: Opening connection for fqhn using scp...failed
>> >> -----------------------
>> >>
>> >> There doesn't appear to be a buffer named "*tramp/scp fqhn*".
>> >
>> >
>> > Sorry, I don't know enough about tramp to diagnose this.  Maybe it would
>> > help if you would say exactly what commands you gave.  And does the
>> problem
>> > occur if you start with 'emacs -Q'?
>>
>> What "commands" am I giving?  All I'm trying to do is open a single
>> file on the remote host.
>>
>> I'm entering "//fqhn:/home/<myuid>/.bash_profile".
>>
>> I get different behavior using "emacs -Q".  I don't get a timeout
>> error, but I also don't think it even attempted to connect to the
>> remote box.  The editor view just opens with the given name, but it's
>> empty (it shouldn't be).  The "*Messages*" buffer doesn't indicate
>> that it ever tried to make a connection.  It also says "Use M-x
>> make-directory RET RET to create the directory and its parents".
>>
>> The other frustrating issue with my full Emacs configuration is that
>> when I enter the second forward slash, key response vastly, and I mean
>> vastly, slows down. I've gone through the tramp FAQ looking for
>> potential performance issues, but nothing has helped.
>>
>> --
>> 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
>>
>>
>
> --
> 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
>

--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-08 22:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-04 22:42 Can't connect to ssh host with Emacs tramp David Karr
2018-01-05  1:15 ` Ken Brown
2018-01-05 16:37   ` David Karr
2018-01-05 17:22     ` Ken Brown
2018-01-05 18:35     ` George Prikhodko
2018-01-08 22:34       ` David Karr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).