From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: =?Windows-1252?Q?Re:_How_to_use_=91ssh_-i_=92_with_Tramp?= =?Windows-1252?Q?=3F?= Date: Fri, 17 Jun 2022 13:59:12 +0000 Message-ID: <87pmj7ie6i.fsf@t14.reltub.ca> References: <87bkure8s3.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5188"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: "help-gnu-emacs@gnu.org" To: Pankaj Jangid Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 17 16:05:28 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2CbH-00015I-Rw for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Jun 2022 16:05:28 +0200 Original-Received: from localhost ([::1]:60352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2CbF-0005J3-EU for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Jun 2022 10:05:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2CaB-0005GQ-B3 for help-gnu-emacs@gnu.org; Fri, 17 Jun 2022 10:04:19 -0400 Original-Received: from mail-yt3can01on2072a.outbound.protection.outlook.com ([2a01:111:f403:7053::72a]:29702 helo=CAN01-YT3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2Ca9-0005CZ-5L for help-gnu-emacs@gnu.org; Fri, 17 Jun 2022 10:04:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DEriTRtmQ9+yhULTo3cT4f0bHRaKI1XvBLtx5WsAd3bUeh+QDpcxcmPHOHxlrKx3XSZltJlnqfBy5Fv/9JmXfa6QoruaVuWY9MNUj97NJlAxXcdtvZHgYKQtMUcDYzBmlMDP7BbkiX7BMFj/kScAoTV6uAm09DbNCPck8EpkLawx/RK3MIeXtzWqHKIo5mw1L5zsaQ/86sxEaCYwnl2khZcA9+czGa5pVRHiCoyUMIt3tTZq9Y6F1eUwAvtVu7EZFnJcbEM8VomZ0flZwwdSyq+NdubhLKIKwWzbv0q42KD6CM+aO+MniDcPQL1ZODFClzMGJ5Ky2gwtU+iIdCpFdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YKwJTJtB8GwJ+QB75HY6/la6p6HBfrq44KPa5fv7K6M=; b=aMvI7B7q01ZgRTCQxCveLPWtNE6QOc6upT+IfFZeleCCv0lNdHoHCD0A+A3TpQxA+/rEWiUWdXosX+WMile/jsO+rz+SBm00yFPSj7jBEoxwjfL19sTpVjnjnZAxVvKZoAdn+L9a5Clz0PsmsF+abJnie3y+roDQ42WjmJdd1UQNXEJfO1cs1+jxHj+O0Eznp/8y8+WBBXxCA+RcXuh1pyhGB5MJYvR2MXMRG9rFx3cT2bp5i69BaHl6WXa0Lpwbv53TfjTfTaGvgEDZKLAqQrMiFIjILVhvJmuzq15c2VL6NAWLDQJnV89qhzIyhKeJJ0JDafRqpCbtk74KhBb2Uw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YKwJTJtB8GwJ+QB75HY6/la6p6HBfrq44KPa5fv7K6M=; b=idfZEDcDsb9wowF/fU0t4r+7UDaoNx0DHtlB9TQ2x2QiouxWjnqp/hFgQIZZ58UMz2m+3ZhBaIZvM6s2MNK9/ep6RBOpFiy5/8NaaRtSyKGUUg2CrZlVuTCpMm/qiSJwIeIGJb9tLu2GfExgoDj5/JqkTv3CyXpFBLUKu0cnLqk= Original-Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:90::5) by YT2PR01MB8598.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:b5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 13:59:12 +0000 Original-Received: from YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::55ea:c176:7b16:29da]) by YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM ([fe80::55ea:c176:7b16:29da%4]) with mapi id 15.20.5353.014; Fri, 17 Jun 2022 13:59:12 +0000 Thread-Topic: =?Windows-1252?Q?How_to_use_=91ssh_-i_=92_with_Tramp=3F?= Thread-Index: AQHYgkvprLlzGfs97kmWXZwHnW6grA== In-Reply-To: <87bkure8s3.fsf@codeisgreat.org> (Pankaj Jangid's message of "Fri, 17 Jun 2022 18:39:32 +0530") Accept-Language: en-US Content-Language: en-US authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=umanitoba.ca; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7a148b84-9ca9-4f89-e409-08da50698edb x-ms-traffictypediagnostic: YT2PR01MB8598:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZRycMjavD9z/H+Gdj7CxMvcYwlnohaRHAUKnHt04bg8rmTSw9tAfd7ODalXj+32NVI2NXlDhcD6z48nLpvMooD9Q+8hpv4gQXGBZJVoe62M+xhGGrvd4LCfenV9leoaeflBIsDvKElTRr6DZw3fNd6WPbgqahqyA4CuNsI02t0C2bR1XqPj5YVTJlpaggIAMQEGSGx/ufcZscpoV4Xu3iP6qJkL98wbckLONK6xEiJlSO12KFMG+kG+7rkXnsQSYo4XueB5ho0hEwAN+eEnITbwQH+co2us4PrMfbvxBE/GdAhpSnQ8dWjDkd2VWH6/HQONnFJ2waaRAKjxDvNvlN3sH4mfQcKVW9Ou7uHV6jrrWyTsiAkok30gbcvs7H/MOpjv44tQwuHU3cMIM9hhjInLd0As91qwAJKA8TX5wlInWtTGMU/vMvuf65HgulYUTIRTfqDbhL8FEL7ecT+wgqo/fMrYgxLVbqGwQh7KqM049/hnZpzAqyNOQk3cXOIzqgL9IXzxGj5MDN+/uhs4+b4OnGytEhMM/HNVoom+8DxUlkQUXZ5pEohPKQ243ESV58pZHfk69QSLvUgXo7K/tsC6j9dmH3N3lKWmfHvhWkTVzWoDe9XVxEJ70c9H2eqs1nYEi6I1xUTviFy7ZUH/WhJiOk+eRdGm8bH79r/skKyCA668+a9QoZfnIbCBh7HjtNeQIH3jesrqaZxEBCPxiQw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(366004)(4326008)(8936002)(38070700005)(4744005)(76116006)(91956017)(316002)(786003)(64756008)(66446008)(66476007)(66556008)(66946007)(6916009)(71200400001)(498600001)(6486002)(5660300002)(2906002)(6506007)(26005)(186003)(9686003)(38100700002)(122000001)(6512007)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?JyepsSTkdRKXgaNuF2Qvi+3RqVJe2TFlwjcCVS0F022DZ0rdiQNjO7U7?= =?Windows-1252?Q?zDBb6mK8RtZHPrw8LtDhevroZlfniwAwQf0Vioi5xON/z8yHNV8P05eX?= =?Windows-1252?Q?eMOQ9p2+hRz90aMWZIZDH1ezzzVfZImcJHo6sCRN4iM2bkNop5tlNhtd?= =?Windows-1252?Q?AkwTpi/+xck1fCcmfe6zt1YjVEnaBBByRIv1KNVOK8reo9HaZWJ3dFhN?= =?Windows-1252?Q?dNAznPxCZ6myXhYRJIGzl9gVW8QAqj24vnU4cxxLThoZljfTM5jfoHfM?= =?Windows-1252?Q?2xHNgKuslqx/8/pgItPS7wSCItrlKZHUpEbCquV6QvEbPH/g4VtH5bRY?= =?Windows-1252?Q?NLO/pF0Rr0qobbusUhnuZVVJ+SyvdpWmpuGqNZhuhxfyXsjJ9CcY7wyk?= =?Windows-1252?Q?Dx+qtx49vlc8KsCXhsH38LJhvZWmVnvUHFR465+h1YDNTvlHnHB6ujkQ?= =?Windows-1252?Q?7JaF1tMwf0tfrGCGctB5Qkh3A4VWmEvG1vdVPsfs0emZTV4AFLm093P+?= =?Windows-1252?Q?dnQcnlPhIqZdMgsLD3t6puusZ9B4HOPrOF+nV87gSq9voAE4F1i/QF7T?= =?Windows-1252?Q?S15PPO1phRI8DWcS6aT/I5LskIOsE8YOcoSUcQzrM0K1/Q0u/izO5fLm?= =?Windows-1252? X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB9964.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 7a148b84-9ca9-4f89-e409-08da50698edb X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2022 13:59:12.4753 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sMllIcFUkPl/OIbZJXaoJ5YixJGYEynKUiuVUi3/dMS9zY7gaBgvQ+BdKsAkbdhUB7Y5kRpVVGWQtJV9vBqM5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT2PR01MB8598 Received-SPF: pass client-ip=2a01:111:f403:7053::72a; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-YT3-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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.io gmane.emacs.help:137896 Archived-At: On Fri, Jun 17 2022, Pankaj Jangid wrote: > When I edit remote files using ssh with default options, it works fine. B= ut now > there is a requirement to use an identity_file with option -i. How to add= this > option when connecting using Tramp? > > On command line I connect using this command, > > ssh -i user@host I would create ~/.ssh/config and populate it with your command-line options: #+begin_example Host ssh-example-com HostName ssh.example.com User someone Port 4321 IdentityFile ~/.ssh/ssh.example.com #+end_example Then, ssh ssh-example-com will do what you want. Or C-x C-f /ssh:ssh-example-com:. RET will open the home directory of "someone" on ssh.example.com. HTH, Leo=