From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45425) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjTMO-0005L8-71 for guix-patches@gnu.org; Fri, 05 Jul 2019 14:55:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjTMN-0004Mt-1i for guix-patches@gnu.org; Fri, 05 Jul 2019 14:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44911) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjTMM-0004Mj-Hd for guix-patches@gnu.org; Fri, 05 Jul 2019 14:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hjTMM-0003Yb-ES for guix-patches@gnu.org; Fri, 05 Jul 2019 14:55:02 -0400 Subject: [bug#36404] [PATCH v5 1/4] ssh: Add 'identity' keyword to 'open-ssh-session'. Resent-Message-ID: From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) References: <87o92ianbj.fsf@sdf.lonestar.org> <87o92glap5.fsf@dustycloud.org> <878sthoqzi.fsf@gnu.org> <87imsl9tsx.fsf_-_@sdf.lonestar.org> <87ef399tpu.fsf_-_@sdf.lonestar.org> <87a7dx9tog.fsf_-_@sdf.lonestar.org> <875zol9tn2.fsf_-_@sdf.lonestar.org> <871rz99tl9.fsf_-_@sdf.lonestar.org> <875zoldqah.fsf@kyleam.com> <87muhwtmfp.fsf@sdf.lonestar.org> <871rz874l2.fsf@kyleam.com> <877e90tj7l.fsf_-_@sdf.lonestar.org> <8736jotj5v.fsf_-_@sdf.lonestar.org> <87y31gs4k5.fsf_-_@sdf.lonestar.org> <87y31cnb2t.fsf@gnu.org> <87ftnkgvo8.fsf_-_@sdf.lonestar.org> Date: Fri, 05 Jul 2019 14:54:32 -0400 In-Reply-To: <87ftnkgvo8.fsf_-_@sdf.lonestar.org> (Jakob L. Kreuze's message of "Fri, 05 Jul 2019 14:53:27 -0400") Message-ID: <878stcgvmf.fsf_-_@sdf.lonestar.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36404@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * guix/ssh.scm (open-ssh-session): Add 'identity' keyword argument. =2D-- guix/ssh.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/guix/ssh.scm b/guix/ssh.scm index 9b9baf54e..ede00133c 100644 =2D-- a/guix/ssh.scm +++ b/guix/ssh.scm @@ -57,12 +57,14 @@ (define %compression "zlib@openssh.com,zlib") =20 =2D(define* (open-ssh-session host #:key user port +(define* (open-ssh-session host #:key user port identity (compression %compression)) =2D "Open an SSH session for HOST and return it. When USER and PORT are #= f, use =2Ddefault values or whatever '~/.ssh/config' specifies; otherwise use them. =2DThrow an error on failure." + "Open an SSH session for HOST and return it. IDENTITY specifies the file +name of a private key to use for authenticating with the host. When USER, +PORT, or IDENTITY are #f, use default values or whatever '~/.ssh/config' +specifies; otherwise use them. Throw an error on failure." (let ((session (make-session #:user user + #:identity identity #:host host #:port port #:timeout 10 ;seconds =2D-=20 2.22.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl0fnOgACgkQ9Qb9Fp2P 2Vpu6w//R4MuzdpOGHrsX8xif8jBrL74E8IH7bGBZk4axoZB83aDgbnmcoo9nW8h O9+p+DzJN3uGrYUUsbHaDbAHYWlAlvZEFACzHSW80GkYAUd4UbuDNYq7MHOAnyIs WepDaA4bTrGJW+Qy/P6EAcYrduZ548dGtG/wT8xSGC+KVh0oyDLaQfFWlsE3Noe/ OgyZSDDNu7PBX77zYMll4JuIroTiwznHtLRlDS6KbWWNkX4AYvqudkSLix0lsOpI qCsGXu1peXHN9RLzooQ9etR3aKFVak185gNFu36tm2MXqeNOp1qrQBPeCchn4QBB yp6/ZaTYlm218enakMbzPonadwzSLmeqtzGBYxLTUQDKtlWljaYErOaq5yvShia4 MuAbknjuDPNMtDUkbtaFs6zraqKkR2J/7lbuRvLazcNZuLWLXwxIdqWG5EAbzGXF vUo3DsZ5z4UPk4ja6oHXUId4soNAhgy0lwWv4clSogmXyY3SoObKxsNk+2N3pj5O T5PJsH3W9cHGhNykkhFF1VWumQOBnoFcHnF67ZLbILGU2jjo9YU1DkJoPOIcFO8w Vmr9vNp0hQgaCcsMV/CZXrSB6DXZ8eaNMgvo2BsSqhQWgVY3sYZzoLPmZBThYQuN OElnS+Cj6BzzI7QkBjH0F4+q3I7D/qihZYBR+Irx6P1ApLKGi4M= =/Is9 -----END PGP SIGNATURE----- --=-=-=--