Date: Sat, 15 May 2021 03:17:41 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 255892] sysutils/zfs-stats [patch] facilitate use with ssh Message-ID: <bug-255892-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255892 Bug ID: 255892 Summary: sysutils/zfs-stats [patch] facilitate use with ssh Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mm@FreeBSD.org Reporter: david@catwhisker.org Flags: maintainer-feedback?(mm@FreeBSD.org) Assignee: mm@FreeBSD.org Created attachment 224956 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224956&action= =3Dedit patch to allow zfs-stats to make use of ssh-agent zfs-stats is a Perl script, and is invoked using /usr/bin/env; it also clea= rs the environment in the process, which is generally a Good Thing. However, it also clears the SSH_AUTH_SOCK environment variable in the proce= ss, which causes each invocation that is intended to use ssh to also request authentication... which rather defeats a lot of the purpose of using (e.g.) public key authentication. The attached patch causes the script to clear all but the SSH_AUTH_SOCK environment variable; the resulting script thus Just works when told to use ssh. If there's another (better) way to do this, I'm fine with that. Having set things up so I only need to enter my authentication information when I logi= n to my laptop, and can then ssh to other machines freely, it seemed a bit ... undesirable ... to suddenly get requests to re-enter the information for ea= ch query. While I was here, I also inserted a "-x" flag in the ssh invocation: zfs-st= ats certainly has no need to forward X11 for its statistics-gathering. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255892-7788>