From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: help with sftp Date: Sat, 06 Apr 2013 11:21:09 +0300 Message-ID: <83hajkdq8a.fsf@gnu.org> References: <38e28697-28a7-4daf-bb2b-77a1a50cd827@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365278505 28028 80.91.229.3 (6 Apr 2013 20:01:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:01:45 +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:01:48 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 1UOZIW-0007UX-Rg for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:01:12 +0200 Original-Received: from localhost ([::1]:47952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOONO-00086Y-0C for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 04:21:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOON9-00086Q-T3 for help-gnu-emacs@gnu.org; Sat, 06 Apr 2013 04:21:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOON5-0006FF-KJ for help-gnu-emacs@gnu.org; Sat, 06 Apr 2013 04:21:15 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOON5-0006Ev-Bn for help-gnu-emacs@gnu.org; Sat, 06 Apr 2013 04:21:11 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MKT00M00R4X1B00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 06 Apr 2013 11:21:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKT00LKVR75SV40@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Sat, 06 Apr 2013 11:21:05 +0300 (IDT) In-reply-to: <38e28697-28a7-4daf-bb2b-77a1a50cd827@googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:90012 Archived-At: > 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.