X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9E263385DC0B
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cam.ac.uk
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ctr28@cam.ac.uk
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; 
 s=20180806.ppsw;
 h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:
 References:Cc:To:From:Subject:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=5aK54E9X1dEYzM7ccA23CMXrSnwOwmc0qRU6GDUjT7A=; b=NzWzIxigMnGV3hL0okIV/elTqm
 y/Dq5MTFqAS6lSHXZSOMIRTTHuftYgHV9u5OiGWKmpdFieqkgiVtLL4NTQhzQbDF36Nx8nHR0/K54
 xa68hs3Lf5fWsB+wwtKnAtgCSXfeP6kGWSWOpleLX3710ynUbOjEnVtkMY4DtBqqwHLM=;
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Subject: Re: ssh-pageant
From: Chris Rodgers <ctr28@cam.ac.uk>
To: cygwin@cygwin.com
References: <5f24168f-61d7-848b-677d-bf0d5aea303a@cam.ac.uk>
Message-ID: <569cc14c-a9f8-e9bb-0700-d244968cdd30@cam.ac.uk>
Date: Thu, 23 Apr 2020 17:40:29 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <5f24168f-61d7-848b-677d-bf0d5aea303a@cam.ac.uk>
Content-Language: en-GB
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIMWL_WL_MED,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE,
 RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Thomas Wolff wrote:

> >/Would it be acceptable to update the ssh-pageant package to add a file />//etc/profile.d/ssh-pageant.sh that does this automatically? /Does what? Add something to other users' profiles? Sounds like MS-style
> patronizing of user preferences. Certainly not appreciated by most
> people. Also, why should most cygwin users want to use ssh via putty?
> Mintty + ssh is a seamless modular solution.
>
> >

The sole purpose of installing ssh-pageant is to use pageant as an SSH 
key agent for openssh. It's not a base package. So the users who install 
ssh-pageant on their machines presumably want pageant to be their ssh 
key agent for openssh. So I am proposing that this should work 
immediately after the package is installed, without requiring editing 
the .bash_profile file.

Adding a file to /etc/profile.d/ssh-pageant.sh seems like it would be a 
simple way to achieve this.

I guess there is an issue for multi-user machines where different users 
want to use different SSH agents wherein the default ssh agent would be 
set for all users on installing ssh-pageant package. It can still 
trivially be overridden by a .bash_profile configuration of an SSH key 
agent in the user profile scripts.

What do people think? My driver is that it would be nice to streamline 
the standard setup for folk in my lab.

The other thought I had was to add a postinstall script, like some 
fedora or ubtuntu packages have. Are these allowed to prompt the user 
interactively whether they wish to configure the profile setting?

BW

Chris.


--
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
