From: Michael Albinus <michael.albinus@gmx.de>
To: Pankaj Jangid <p4j@j4d.net>
Cc: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How to Tramp with ssh and sudo?
Date: Wed, 08 Jan 2020 14:53:10 +0100 [thread overview]
Message-ID: <87sgkqhx6h.fsf@gmx.de> (raw)
In-Reply-To: <0100016f856489b2-fefb1ba0-bb93-4e45-98a3-28354266f17d-000000@email.amazonses.com> (Pankaj Jangid's message of "Wed, 8 Jan 2020 13:42:36 +0000")
Pankaj Jangid <p4j@j4d.net> writes:
Hi,
> Need some help with Tramp. I know that to access a remote file the path
> is
>
> /ssh:user@host:/path/to/file
>
> For privileged file on local machine, it is
>
> /sudo::/path/to/file
>
> I want to combine the above two i.e. I want to access a privileged file
> on a remote machine. What is the path for that?
/ssh:user@host|/sudo:host:/path/to/file
> Regards
Best regards, Michael.
next prev parent reply other threads:[~2020-01-08 13:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-08 13:42 How to Tramp with ssh and sudo? Pankaj Jangid
2020-01-08 13:53 ` Michael Albinus [this message]
2020-01-10 9:08 ` Pankaj Jangid
2020-01-10 9:22 ` tomas
2020-01-10 11:47 ` Pankaj Jangid
2020-01-10 13:50 ` tomas
2020-01-10 9:23 ` Michael Albinus
2020-01-10 11:43 ` Pankaj Jangid
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=87sgkqhx6h.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=p4j@j4d.net \
/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.