all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Wenshan Ren <renws1990@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org, Wenshan Ren <renws1990@gmail.com>
Subject: Re: EShell tips on SSH?
Date: Tue, 15 Jan 2013 15:12:15 -0800 (PST)	[thread overview]
Message-ID: <6c9bc278-4d38-4f9b-b1ce-344bf745a23a@googlegroups.com> (raw)
In-Reply-To: <mailman.17476.1358235541.855.help-gnu-emacs@gnu.org>

On Tuesday, January 15, 2013 6:38:48 PM UTC+11, Michael Albinus wrote:
> Wenshan Ren <renws1990@gmail.com> 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


      parent reply	other threads:[~2013-01-15 23:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15  0:13 EShell tips on SSH? Wenshan Ren
2013-01-15  7:32 ` Bob Proulx
2013-01-15  7:38 ` Michael Albinus
     [not found] ` <mailman.17475.1358235159.855.help-gnu-emacs@gnu.org>
2013-01-15 23:09   ` Wenshan Ren
     [not found] ` <mailman.17476.1358235541.855.help-gnu-emacs@gnu.org>
2013-01-15 23:12   ` Wenshan Ren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c9bc278-4d38-4f9b-b1ce-344bf745a23a@googlegroups.com \
    --to=renws1990@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.