From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jean Magnan de Bornier Newsgroups: gmane.emacs.help Subject: Re: help with sftp Date: Sat, 06 Apr 2013 10:05:40 +0200 Organization: Guest of ProXad - France Message-ID: <878v4wqe23.fsf@bornier.net> References: <38e28697-28a7-4daf-bb2b-77a1a50cd827@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365278439 27202 80.91.229.3 (6 Apr 2013 20:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:00:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 22:00:40 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UOZHZ-0007UX-93 for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:00:13 +0200 Original-Received: from localhost ([::1]:50386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOVpE-0004Pc-Ee for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 12:18:44 -0400 Original-Path: usenet.stanford.edu!goblin3!goblin.stu.neva.ru!news.franciliens.net!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!cleanfeed4-a.proxad.net!nnrp1-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:/u4U2a4TScgUr+nliVNLdelB0m8= Original-Lines: 44 Original-NNTP-Posting-Date: 06 Apr 2013 10:05:41 CEST Original-NNTP-Posting-Host: 78.211.168.57 Original-X-Trace: 1365235541 news-3.free.fr 2054 78.211.168.57:49474 Original-X-Complaints-To: abuse@proxad.net Original-Xref: usenet.stanford.edu gnu.emacs.help:197759 X-Mailman-Approved-At: Sat, 06 Apr 2013 12:18:05 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90008 Archived-At: 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