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

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

Re: help with sftp


From: Jean Magnan de Bornier
Subject: Re: help with sftp
Date: Sat, 06 Apr 2013 10:05:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

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 via email to

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