X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5C1A9385DC0A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca X-Authority-Analysis: v=2.3 cv=LKf9vKe9 c=1 sm=1 tr=0 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=qTKJZnCsAAAA:20 a=fjDFcf429ns8VtWUCqQA:9 a=QEXdDO2ut3YA:10 Subject: Re: ssh-pageant To: cygwin AT cygwin DOT com References: <5f24168f-61d7-848b-677d-bf0d5aea303a AT cam DOT ac DOT uk> From: Brian Inglis Autocrypt: addr=Brian DOT Inglis AT SystematicSw DOT ab DOT ca; prefer-encrypt=mutual; keydata= mDMEXopx8xYJKwYBBAHaRw8BAQdAnCK0qv/xwUCCZQoA9BHRYpstERrspfT0NkUWQVuoePa0 LkJyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFN5c3RlbWF0aWNTdy5hYi5jYT6IlgQTFggA PhYhBMM5/lbU970GBS2bZB62lxu92I8YBQJeinHzAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQW AgMBAh4BAheAAAoJEB62lxu92I8Y0ioBAI8xrggNxziAVmr+Xm6nnyjoujMqWcq3oEhlYGAO WacZAQDFtdDx2koSVSoOmfaOyRTbIWSf9/Cjai29060fsmdsDLg4BF6KcfMSCisGAQQBl1UB BQEBB0Awv8kHI2PaEgViDqzbnoe8B9KMHoBZLS92HdC7ZPh8HQMBCAeIfgQYFggAJhYhBMM5 /lbU970GBS2bZB62lxu92I8YBQJeinHzAhsMBQkJZgGAAAoJEB62lxu92I8YZwUBAJw/74rF IyaSsGI7ewCdCy88Lce/kdwX7zGwid+f8NZ3AQC/ezTFFi5obXnyMxZJN464nPXiggtT9gN5 RSyTY8X+AQ== Organization: Systematic Software Message-ID: Date: Thu, 23 Apr 2020 12:33:35 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <5f24168f-61d7-848b-677d-bf0d5aea303a@cam.ac.uk> Content-Language: en-CA X-CMAE-Envelope: MS4wfATGxWmvcLZtfH8EQodxQOeelHTfmkcuAyV7OK51/YJBt6wekPcha+hmteK6vjr9u48b2mXIoy9YiMxVCFM7gd+ZURJtlB7jnVFPi1SjuAqINwLqZyvY 0zMmkNwUSEgl5cxGexESCvaup7qBwaDzJIqUy+US1+xaM0oTPZiVzOTsx/Co0AanZRf8YEiPCj1xCw== X-Spam-Status: No, score=-15.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 2020-04-23 07:50, Chris Rodgers wrote: > I find the ssh-pageant package helpful to enable cygwin ssh to interact > seamlessly with PuTTY's Pageant SSH agent. One small issue is that after > installing, one has to add the lines: > # ssh-pageant > eval $(/usr/bin/ssh-pageant -r -a "/tmp/.ssh-pageant-$USERNAME") > (see https://github.com/cuviper/ssh-pageant) > to .bashrc for each user. > Would it be acceptable to update the ssh-pageant package to add a file > /etc/profile.d/ssh-pageant.sh that does this automatically? > Or is there another preferred way to do this, e.g. a postinstall script? > I'd be happy to draft a script file for review. For the general case, you may want to suggest that the maintainer include instructions about this in each upgrade notice, but nothing should be done in the package as it assumes too much about users' environments. For example: what if their default shell/s is/are not bash, or they don't already have a .bashrc, and shouldn't you do that setup in whatever their shell profile is, if they have one, and what if they don't; what if Pageant or Cygwin don't use Cygwin /tmp/ but some other TMPDIR e.g. Windows ~/AppData/Local/Temp/; what if your users run ssh from cmd without starting Cygwin; etc.? You may do what your users allow you on their systems, but you have to ensure that your Putty/Pageant and ssh setup additions work flawlessly on all of them, coordinating between what you do for Pageant and what you do for ssh. You may want to consider doing whatever is required in each user's ssh_config if possible, or /etc/ssh_config to provide users defaults, as those depend least on each user's environment. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple