* get root on a remote Host
@ 2006-01-31 15:56 Lado
2006-02-01 15:38 ` ken
0 siblings, 1 reply; 3+ messages in thread
From: Lado @ 2006-01-31 15:56 UTC (permalink / raw)
Hi!
Ich use emacs 22. I use Tramp over ssh to edit my files on remote Hosts
very often. From time to time i need to get root on a remote host. There
is no Problem to get root on the localhost with /su::, but i was not
able to find any solution how to get root on a localhost.
P.S.
i can not login as root on a remote host, because ssh root login are not
permitted.
Thank you!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: get root on a remote Host
[not found] <mailman.388.1138723417.3044.help-gnu-emacs@gnu.org>
@ 2006-02-01 9:20 ` Michael Albinus
0 siblings, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2006-02-01 9:20 UTC (permalink / raw)
Cc: help-gnu-emacs
Lado <newsforlado@gmail.com> writes:
> Hi!
Hi,
> Ich use emacs 22. I use Tramp over ssh to edit my files on remote Hosts
> very often. From time to time i need to get root on a remote host. There
> is no Problem to get root on the localhost with /su::, but i was not
> able to find any solution how to get root on a localhost.
> P.S.
> i can not login as root on a remote host, because ssh root login are not
> permitted.
How can you be root on your remote host? I suspect you login via ssh
under your own name onto that host, and then you apply "su" or
"sudo". This behaviour can be simulated with Tramp using a multi-hop
method, something like "/multi:ssh:remote.host:su:root@localhost:/".
Note that the syntax has been changed with Tramp 2.1. But with plain
Emacs 22, you have Tramp 2.0.
> Thank you!
Best regards, Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: get root on a remote Host
2006-01-31 15:56 get root on a remote Host Lado
@ 2006-02-01 15:38 ` ken
0 siblings, 0 replies; 3+ messages in thread
From: ken @ 2006-02-01 15:38 UTC (permalink / raw)
On Tue, 31 Jan 2006 16:56:30 +0100 Lado <newsforlado@gmail.com> wrote:
> Hi!
> Ich use emacs 22. I use Tramp over ssh to edit my files on remote
> Hosts very often. From time to time i need to get root on a remote
> host. There is no Problem to get root on the localhost with /su::, but
> i was not able to find any solution how to get root on a localhost.
> P.S.
> i can not login as root on a remote host, because ssh root login are
> not permitted.
>
> Thank you!
Use ssh to log into the remote host as a regular user. Then su to root.
Then either (1) fire up emacs either in a terminal (non-X) or (2) set up
your local machine as an X server and launch emacs on the remote
machine but using the display variable of the local machine.
hth,
ken
--
"This world ain't big enough for the both of us,"
said the big noema to the little noema.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-01 15:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31 15:56 get root on a remote Host Lado
2006-02-01 15:38 ` ken
[not found] <mailman.388.1138723417.3044.help-gnu-emacs@gnu.org>
2006-02-01 9:20 ` Michael Albinus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).