all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gerald.jean@dgag.ca
To: amelsen@gmail.com
Cc: help-gnu-emacs@gnu.org,
	help-gnu-emacs-bounces+gerald.jean=dgag.ca@gnu.org
Subject: RE Help with ange-ftp + .netrc in emacs
Date: Mon, 8 Nov 2010 12:34:24 -0500	[thread overview]
Message-ID: <OFC5FD6D71.270BE50F-ON852577D5.0060090F-852577D5.006088ED@dgag.ca> (raw)
In-Reply-To: <AANLkTimxxn=3f9868YZ8y+5EM7DCk6Je3EmjWqT5hjMy@mail.gmail.com>

I have this in my .emacs, accessing a Linux server from Emacs running on a
Windows machine.

(setq tramp-default-method "ftp")
(require 'ange-ftp)
(setq ange-ftp-ftp-program-name        ;;
      (if (w32-using-nt)
               (progn
                 "c:/Emacs/i386/ftp.exe"  ;;
                 )))

I have been using this for years and it works like a charm.  Every morning
when Emacs starts on the PC it asks me for my password on the Linux server
and it logs on there and opens every thing I had openend at last shut down
(I use "desktop").

Good luck,

Gérald Jean
Conseiller senior en statistiques,
VP Actuariat et Solutions d'assurances,
Desjardins Groupe d'Assurances Générales
télephone            : (418) 835-4900 poste (7639)
télecopieur          : (418) 835-6657
courrier électronique: gerald.jean@dgag.ca

"We believe in God, others must bring Data."

W. Edwards Deming

help-gnu-emacs-bounces+gerald.jean=dgag.ca@gnu.org a écrit sur 2010/11/08
04:29:45 :

> Hey guys,
>
> I've been trying desperately to get my emacs configured to use ange-
> ftp to an ftp server.
>
> My shell-box is behind a firewall, and as such I have my .emacs file
> looking like this:

>
> Code:
> (require 'tramp)
> (setq tramp-default-method "ftp")
> (setq ange-ftp-ftp-program-name "pftp")
>
> And then I've tried to set up my .netrc file as this to be able to
> use autocompletion on host name.. and this I can't even get to work
either....

>
> Code:
> machine server-host-name port-no
>         login <my-user>
>         password <my-password
> And I just can't get it work... it won't autocomplete the
> servername.. and if I try to open the ftp connection manually by
>
> ctrl-x, ctrl-f and then typing:
>
> /username:password@servername#port:~/
>
> .. it just says it's not a valid tramp file...
>
> What am I doing wrong... can anyone please explain how this is to be
> set up.. I've read pages up and down on wiki's on how to do this..
> but to no prevail.
>
> I'm running Ubuntu and emacs22 from a shellbox.
>
> Does anyone perhaps have an example .emacs file they can supply me
> with where they know that ftp works in emacs.
>
>
> Best regards,
>
> - Allan
> Denmark




      reply	other threads:[~2010-11-08 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08  9:29 Help with ange-ftp + .netrc in emacs Allan Melsen
2010-11-08 17:34 ` gerald.jean [this message]

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=OFC5FD6D71.270BE50F-ON852577D5.0060090F-852577D5.006088ED@dgag.ca \
    --to=gerald.jean@dgag.ca \
    --cc=amelsen@gmail.com \
    --cc=help-gnu-emacs-bounces+gerald.jean=dgag.ca@gnu.org \
    --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.