help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run ssh in emacs


From: Haines Brown
Subject: Re: run ssh in emacs
Date: Fri, 16 Jan 2015 15:55:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Michael Albinus <michael.albinus@gmx.de> writes:

> The ftp method is not handled by Tramp; Tramp redirects all work to
> ange-ftp.el. And that package does not use auth-ources, it simply relies
> on ~/.netrc.

Michael, sorry to be so slow on the uptake. For my Emacs 24, ELPA tells
me that ange-ftp is built in, and so I would not expect to see any
ange-ftp.el file. I gather that if I use a tramp command to transfer a
file by ftp, it is authomatically done with ange-ftp.

I presume that since I want to use ftp, I need to define the login in
the .netrc. I have this line there:

  machine uss-irex.info login ussir03 password "Geheim"

I open an emacs session amd issue this command:

  C-x C-f /ftp:issir03@uss-irex.info: 

The messages buffer tells me:

  Waiting for prompts from remote shell
  ssh: connect to host ftp port 22: No route to host.

Can on infer from this that ange-ftp is attempting to log in to the
remote FTP server? But I thought port 22 was SSH? Does "No route" mean
that there is either no such server or account? Is it possible the
hosting service introduced some kind of sercurity measure of which I am
unaware (if there's nothing wrong with what I'm doing at this end, I'll
have to pursue this with them)? 

In *messages* buffer:

  Tramp: Waiting for prompts from remote shell
  Tramp: Sending command `exec ssh   -e none ftp'
  Tramp: Opening connection for ftp using ssh...done
  Tramp: Opening connection for ftp using ssh...
  Tramp: Sending command `exec ssh   -e none ftp'

  Tramp: Waiting for prompts from remote shell
  Tramp: Sending command `exec ssh   -e none ftp'
  Tramp: Opening connection for ftp using ssh...done
  byte-code: Process died

I don't know how to interpret this. It seems ange-ftp wants to execute
ssh session but fails.

Haines  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]