all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* help with sftp
@ 2013-04-05 12:29 olastro
  2013-04-06  8:05 ` Jean Magnan de Bornier
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: olastro @ 2013-04-05 12:29 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help with sftp
  2013-04-05 12:29 help with sftp olastro
@ 2013-04-06  8:05 ` Jean Magnan de Bornier
  2013-04-07  3:57   ` J. David Boyd
  2013-04-06  8:21 ` Eli Zaretskii
  2013-04-06  8:34 ` Peter Dyballa
  2 siblings, 1 reply; 5+ messages in thread
From: Jean Magnan de Bornier @ 2013-04-06  8:05 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help with sftp
  2013-04-05 12:29 help with sftp olastro
  2013-04-06  8:05 ` Jean Magnan de Bornier
@ 2013-04-06  8:21 ` Eli Zaretskii
  2013-04-06  8:34 ` Peter Dyballa
  2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2013-04-06  8:21 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 5 Apr 2013 05:29:32 -0700 (PDT)
> From: olastro@gmail.com
> 
> 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.

Start by installing PuTTY, which includes psftp.exe.

Then use puttygen.exe from the PuTTY package to generate keys.  The
procedure is explained in detail in the PuTTY Help, under "Using
public keys for SSH authentication".  When you have the keys, you will
need to configure the servers to accept your public key -- this is
also described in the PuTTY Help.

Then configure PuTTY for connecting to both servers, by logging once
into each one of the servers with putty and answering YES to PuTTY's
question of whether to accept the server's host key.

Thereafter, you should be able to use psftp via Tramp.  It is
advisable to launch Pageant (part of PuTTY) when your computer starts,
and add your key(s) to it, so that all the authentications after that
will be automatic and won't ask you to type your passphrase for each
login.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help with sftp
  2013-04-05 12:29 help with sftp olastro
  2013-04-06  8:05 ` Jean Magnan de Bornier
  2013-04-06  8:21 ` Eli Zaretskii
@ 2013-04-06  8:34 ` Peter Dyballa
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2013-04-06  8:34 UTC (permalink / raw)
  To: olastro; +Cc: help-gnu-emacs


Am 05.04.2013 um 14:29 schrieb olastro@gmail.com:

> I've tried all. But of course not the solution.

You need an external application on MS: PuTTY. It has all ingredients you need, even very helpful and complete documentation.

--
Greetings

  Pete

We have to expect it, otherwise we would be surprised.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help with sftp
  2013-04-06  8:05 ` Jean Magnan de Bornier
@ 2013-04-07  3:57   ` J. David Boyd
  0 siblings, 0 replies; 5+ messages in thread
From: J. David Boyd @ 2013-04-07  3:57 UTC (permalink / raw)
  To: help-gnu-emacs

Jean Magnan de Bornier <jean@bornier.net> writes:

>
> 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. 

This is a really great idea, thanks!

Dave




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-07  3:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-05 12:29 help with sftp olastro
2013-04-06  8:05 ` Jean Magnan de Bornier
2013-04-07  3:57   ` J. David Boyd
2013-04-06  8:21 ` Eli Zaretskii
2013-04-06  8:34 ` Peter Dyballa

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.