Re: Fwd: sftp with an encrypted key

Alexander Lukyanov <[email protected]> Thu, 18 Dec 2014 08:26:40 +0000
Newsgroups gmane.network.lftp.user
Message-ID <CANnoEwqhQaGyHYZBash7H-q1SftP569UsDsqx2DTzm6WoMX2_Q@mail.gmail.com>
Currently it is not possible as ftp does not ask for passwords
asynchronously, and the need for password arises only during the connection
phase.

4:23, ср, 10.12.2014, Andrew Schulman <[email protected]>:

> > Specify the passphrase for the key as password for the connection. In the
> > example you have provided, you have specified an empty passphrase, thus
> it
> > failed to decrypt the key.
> >
> > If you don't want to give the passphrase in cleartext, don't specify a
> > password in the URL and lftp will ask for a password, type the passphrase
> > at the prompt.
>
> Thanks.  Now, is there a way to get lftp to prompt me for the password if
> the key needs one, and not prompt me if it doesn't?
>
> As far as I can tell, I can either specify
>
>   open sftp://[email protected]
>
> and always be prompted, or
>
>   open sftp://cygwin:@cygwin.com
>
> and never be prompted.  Is there a way to be prompted if and only if the
> key needs to be decrypted?
>
> Andrew
>
> _______________________________________________
> lftp mailing list
> [email protected]
> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp