From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wenshan Ren Newsgroups: gmane.emacs.help Subject: Re: EShell tips on SSH? Date: Tue, 15 Jan 2013 15:12:15 -0800 (PST) Message-ID: <6c9bc278-4d38-4f9b-b1ce-344bf745a23a@googlegroups.com> References: <6faf1f5e-de18-4c8f-b5a8-325b67790f6c@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1358291714 25261 80.91.229.3 (15 Jan 2013 23:15:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 23:15:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Wenshan Ren To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 00:15:32 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 1TvFj9-0006pO-Te for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jan 2013 00:15:32 +0100 Original-Received: from localhost ([::1]:33202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvFis-0007if-PO for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jan 2013 18:15:14 -0500 X-Received: by 10.66.89.135 with SMTP id bo7mr15252211pab.16.1358291535731; Tue, 15 Jan 2013 15:12:15 -0800 (PST) Original-Received: by 10.50.184.193 with SMTP id ew1mr1302228igc.12.1358291535688; Tue, 15 Jan 2013 15:12:15 -0800 (PST) Original-Path: usenet.stanford.edu!ld4no184363pbb.0!news-out.google.com!s9ni24pbb.0!nntp.google.com!ld4no184360pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=110.142.41.50; posting-account=gpzUGgoAAABcXbnOmXbweAYtHvxE5KBK Original-NNTP-Posting-Host: 110.142.41.50 User-Agent: G2/1.0 Injection-Date: Tue, 15 Jan 2013 23:12:15 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:196343 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:88641 Archived-At: On Tuesday, January 15, 2013 6:38:48 PM UTC+11, Michael Albinus wrote: > Wenshan Ren writes: > > > > > Hi, > > > > Hi, > > > > > I manage a few VMs via SSH. As an Emacs user, I'm considering to get > > > everything done without leaving Emacs. > > > > > > So far I've met two problems: > > > > > > 1. ssh -A > > > ssh -A does agent forwarding, but I can't find the EShell > > > equivalent by searching the Emacs Info. > > > > > > How do you achieve the same effect of ssh -A in Emacs? > > > > If you use the remote file name syntax, the underlying operations are > > directed to Tramp. You could redefine Tramp's method definition in order > > to add "-A" to the ssh call. See variable `tramp-methods'. > > > > The better solution would be to add the following entry to your > > ~/.ssh/config: > > > > Host remotehost > > ForwardAgent yes > > > > > 2. cd / > > > After `cd /ssh:username@host', `cd /' will change directory to / of > > > my local machine. > > > Is there any way to make EShell behave like a ordinary bash sshed > > > to a remote machine? > > > > Eshell is designed that file names used by "cd" work as everywhere else > > in Emacs. The usual workaround "*cd /" to apply the corresponding > > external command does not work, because "cd" is not related to an > > executable file, but a shell built-in. What you ask for does not seem to > > be possible in eshell yet. Maybe we should add a new eshell command > > "chroot". Something like > > > > chroot /ssh:username@host:/ > > > > Feel free to raise a change request towards Emacs/eshell via > > `report-emacs-bug'. > > > > > Thanks and regards, > > > Wenshan > > > > Best regards, Michael. Thanks for your reply, it really makes sense to me and I will raise a change request. - Wenshan