cygport improvements: upload, fish, src_prep_fini_hook

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jan 9 10:44:00 GMT 2015


On Jan  9 05:35, Andrew Schulman wrote:
> > > It's vexing that it's so hard to find a solution to such a simple problem:
> > > prompt the user for a password if and only if one is needed.
> > 
> > Indeed.  Here's another crazy idea.
> > 
> > - Look if ssh-agent is running (SSH_AGENT_PID non-empty?)
> > - If not, start ssh-agent and ssh-add.  This asks for the passphrase,
> >   if any.
> > - run sftp
> > - If the script started ssh-agent, run eval $(ssh-agent -k)
> 
> Yeah, I think that is actually a pretty good idea.  Thanks.  
> 
> Another case is if the user sets SSH_KEY to use a specific key, and they already
> have an ssh-agent running, but it doesn't include that key.  Then the key will
> have to be added and then removed again afterward, or maybe a different
> ssh-agent started.  I'll have to think about that.

SSH_KEY?  This env var is not supported by ssh.  If that's an lftp
thingy you can ignore it using the above method.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20150109/0afd66ac/attachment.sig>


More information about the Cygwin-apps mailing list