From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: How to Tramp with ssh and sudo? Date: Wed, 8 Jan 2020 13:42:36 +0000 Message-ID: <0100016f856489b2-fefb1ba0-bb93-4e45-98a3-28354266f17d-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="97977"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 08 14:43:26 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipBbv-0002sn-MU for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2020 14:42:59 +0100 Original-Received: from localhost ([::1]:44096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipBbu-0005pT-E0 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 08 Jan 2020 08:42:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48512) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <0100016f856489b2-fefb1ba0-bb93-4e45-98a3-28354266f17d-000000@amazonses.com>) id 1ipBba-0005pE-F6 for help-gnu-emacs@gnu.org; Wed, 08 Jan 2020 08:42:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <0100016f856489b2-fefb1ba0-bb93-4e45-98a3-28354266f17d-000000@amazonses.com>) id 1ipBbZ-0002HQ-H4 for help-gnu-emacs@gnu.org; Wed, 08 Jan 2020 08:42:38 -0500 Original-Received: from a48-105.smtp-out.amazonses.com ([54.240.48.105]:58838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <0100016f856489b2-fefb1ba0-bb93-4e45-98a3-28354266f17d-000000@amazonses.com>) id 1ipBbZ-0002Gq-7T for help-gnu-emacs@gnu.org; Wed, 08 Jan 2020 08:42:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=2i3gzvbgh3d3bo7yfqpvb5eru2hqctky; d=j4d.net; t=1578490956; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=h8md3pzDrYHhkdhJUcLm5QAX4DDIVVKWEsNNe9X/r+Y=; b=YEpV3A1YzsxlGSq0EMSD/QszsbYUZewEDkd+4gAw58iNqqbLevyG/hFAd5oUq+ml kCVGLc7WiRQV1kl+lNR7vGNKCPkzMpBa/rEECMCxniNlkcTBXlPNGxDVtO+Vneru3w9 rnNux1rIW0Q70I7AcyVEckPQHvek9c1rfrAHSEPc= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1578490956; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=h8md3pzDrYHhkdhJUcLm5QAX4DDIVVKWEsNNe9X/r+Y=; b=e7roRrLVMsSvzL25qB3xLhLyTz60AYKV0WVja29YBQjbIVPI/ATcrjMPIiTme7y3 NtTtbmdVxiTx10RIxLkKlng8eVgXSsDAy7xlnb+Tbm6M3kMu4GxhywTWFWgcz7AUYPf oM0hbF2JDcN8JAkMO7JMtrcB6Jdr6Dh9MkYeCjTk= X-SES-Outgoing: 2020.01.08-54.240.48.105 Feedback-ID: 1.us-east-1.txOs6RzEvQ8hCXYeLqJ8lVjB3e7LuQl8h6pdq90PbRQ=:AmazonSES X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 54.240.48.105 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122179 Archived-At: 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? Regards -- Pankaj Jangid