unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Magnan de Bornier <jean@bornier.net>
To: help-gnu-emacs@gnu.org
Subject: Re: help with sftp
Date: Sat, 06 Apr 2013 10:05:40 +0200	[thread overview]
Message-ID: <878v4wqe23.fsf@bornier.net> (raw)
In-Reply-To: 38e28697-28a7-4daf-bb2b-77a1a50cd827@googlegroups.com

olastro@gmail.com wrote :

| I've tried all. But of course not the solution.
>
| I'm trying to use sftp in this installation
| GNU Emacs 24.3.1 (i386-mingw-nt5.1.2600) of 2013-03-17 on MARVIN
>
| - tried to make ssh keys (cant find a proper 'ls' command)
| - tried with cygwin ("ssh_askpass" could not be found)
| - mappes server as drive with ExpanDrive (cant reach directories 
| outside home-dir)
>
>
| Anyone out there with a plain explanation of how to do things? Would
| be great if its from scratch, seems like I need the teaspoon method.
>
| GOAL:
| connect to an server (actually two different) with SFTP and edit files. 
| As simple as that.
>
>
| regards
| Ola St

Hi Ola,

I have a little function in my .emacs:

(defun cez ()
"Connexion ftp avec junon dans emacs"
(interactive)
(find-file "/sftp:[user]@[server]:~/")
)

Replace [user] with your login and [server] with your server name. ;-) 

so that hitting M-x cez in emacs opens a connexion and dired shows me the
files and I can edit them.

It is a good thing to set up ssh encryption so no password is asked. 

So you need dired mode in emacs and ssh setup. 
-- 
jean


  reply	other threads:[~2013-04-06  8:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05 12:29 help with sftp olastro
2013-04-06  8:05 ` Jean Magnan de Bornier [this message]
2013-04-07  3:57   ` J. David Boyd
2013-04-06  8:21 ` Eli Zaretskii
2013-04-06  8:34 ` Peter Dyballa

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878v4wqe23.fsf@bornier.net \
    --to=jean@bornier.net \
    --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.
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).