Re: [lftp] Fwd: sftp with an encrypted key

2014-12-18 Thread Alexander Lukyanov
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 and...@utexas.edu:

  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://cyg...@cygwin.com

 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
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp

___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] Fwd: sftp with an encrypted key

2014-12-18 Thread Andrew Schulman
 Currently it is not possible as ftp does not ask for passwords
 asynchronously, and the need for password arises only during the connection
 phase.

OK. Thank you.

___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


[lftp] Fwd: sftp with an encrypted key

2014-12-09 Thread Alexander Lukyanov
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.

2014-12-09 13:01 GMT+03:00 Andrew Schulman and...@utexas.edu:

 To connect to an sftp site using an SSH private key, the standard advice is
 to use

   set sftp:connect-program ssh -a -x -i /path/to/key

 If the private key is unencrypted, this works fine.  (A key loaded in a
 running ssh-agent also works fine, without the above.)  But if the key is
 encrypted, the password prompt seems to be blocked:

 $ lftp sftp://cygwin:@cygwin.com
 lftp cyg...@cygwin.com:~ set sftp:connect-program ssh -a -x -i
 /path/to/key
 lftp cyg...@cygwin.com:~ ls
 `.' Delaying before reconnect: 30

 The text

   `.' Enter passphrase for key '/path/to/key': 

 sometimes appears briefly on the screen.  Eventually the connection
 fails.

 It seems that lftp is blocking the password input from the console.  Is
 this a known problem?  Any idea how hard it would be to fix?

 lftp 4.6.0 in Cygwin x86_64.

 Thanks,
 Andrew

 ___
 lftp mailing list
 lftp@uniyar.ac.ru
 http://univ.uniyar.ac.ru/mailman/listinfo/lftp


-- 
   Alexander.
___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] Fwd: sftp with an encrypted key

2014-12-09 Thread Andrew Schulman
 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.

Ah! Right. I forgot that I'd included the empty passphrase in the connection 
string.

Thanks!

___
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp


Re: [lftp] Fwd: sftp with an encrypted key

2014-12-09 Thread Andrew Schulman
 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://cyg...@cygwin.com

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
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp