From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: How to list, add, edit, save file on a remote server Date: Sat, 01 Sep 2012 14:18:30 +0200 Message-ID: <87fw72542x.fsf@googlemail.com> References: <87627yac0e.fsf@googlemail.com> <87r4qm19xh.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346501761 11522 80.91.229.3 (1 Sep 2012 12:16:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2012 12:16:01 +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 Sep 01 14:16:03 2012 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 1T7mcM-0007Sp-DB for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2012 14:16:02 +0200 Original-Received: from localhost ([::1]:41366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7mcJ-0005zn-Rw for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Sep 2012 08:15:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7mc5-0005yP-U2 for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 08:15:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7mc3-0005y2-4n for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 08:15:45 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7mc1-0005v4-7P for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 08:15:41 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T7mc2-00071U-0x for help-gnu-emacs@gnu.org; Sat, 01 Sep 2012 14:15:42 +0200 Original-Received: from e178056004.adsl.alicedsl.de ([85.178.56.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2012 14:15:42 +0200 Original-Received: from tjolitz by e178056004.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2012 14:15:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178056004.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:PUUSGzDK0T/vBQuossU5SXjn0io= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:86627 Archived-At: Oleksandr Gavenko writes: > On 2012-09-01, Thorsten Jolitz wrote: > >> How would you do that? >> Via FTP? With Tramp? Would it be possible to run dired on the foreign >> server? > > Tramp. > > To login to server from Emacs: > > /ssh:user@host:/etc/ TAB <-- completion work here, but you prompted for > password if don't setup RSA/DSA keys. > > To list file on server: > > /ssh:user@host:/etc/ RET > > To open file from server: > > /ssh:user@host:/home/user/.bashrc RET > > Also M-x find-dired, rgrep, lgrep, compile - properly work with TRAMP (run > on remote server and show result in your Emacs). > > Read manual: C-h i S tramp RET RET That looks easy enough, thanks. And it would mean that there is no need for extra commands in my Emacs mode (like M-x my-mode-list-list-wiki-files or so) because Tramp lets you work on the server (almost) like on your machine - just open a file, type M-x my-mode and start editing. Nice. -- cheers, Thorsten