SSH & SFTP: Passphrase Problem

2010-07-09 Thread Paul Romero
Dear Group: I previously posted this problem to the libcurl group and after considering it, think it might actually be a libssh problem. The general problem is that if my private key is encrypted--with a passphrase, I can't complete authentication with the SSH server using libssh. The situatio

SFTP and libssh

2010-07-09 Thread Paul Romero
Dear Group: I would like your opinion about using libssh2 for non-blocking SFTP file transfers. I need to send files to another system with SFTP but do not need to send multiple files concurrently or anything like that. However, it is important for me not to be blocked during a long file transmi

Re: SSH & SFTP: Passphrase Problem

2010-07-09 Thread Aris Adamantiadis
Le 09/07/10 09:35, Paul Romero a écrit : > Dear Group: > > I previously posted this problem to the libcurl group and after > considering it, think it might actually be a libssh problem. > Hi Paul, please do not mix up libssh (http://www.libssh.org) and libssh2 (http://www.libssh2.org) which are

Re: SSH & SFTP: Passphrase Problem

2010-07-09 Thread Paul Romero
Hi Aris: I apologize for the vague language, and am using libssh2. Best Regards, Paul R. Aris Adamantiadis wrote: > Le 09/07/10 09:35, Paul Romero a écrit : > > Dear Group: > > > > I previously posted this problem to the libcurl group and after > > considering it, think it might actually be

SSH & SFTP: Passphrase Problem + Libssh2 Correction

2010-07-09 Thread Paul Romero
Dear Group: I previously posted this problem to the libcurl group and after considering it, think it might actually be a libssh2 problem. The general problem is that if my private key is encrypted--with a passphrase, I can't complete authentication with the SSH server using libssh. The situati

Re: SSH & SFTP: Passphrase Problem

2010-07-09 Thread Daniel Stenberg
On Fri, 9 Jul 2010, Paul Romero wrote: The general problem is that if my private key is encrypted--with a passphrase, I can't complete authentication with the SSH server using libssh. The situation is similar to the normal Linux scenario where ssh-add is used to automatically supply the passp

Re: SSH & SFTP: Passphrase Problem + Libssh2 Correction

2010-07-09 Thread Simon Josefsson
Paul Romero writes: > Dear Group: > > I previously posted this problem to the libcurl group and after > considering it, think it might actually be a libssh2 problem. > > The general problem is that if my private key is encrypted--with > a passphrase, I can't complete authentication with the SSH

Re: SSH & SFTP: Passphrase Problem + Libssh2 Correction

2010-07-09 Thread Paul Romero
Hi Simon: I am glad you brought up this issue because I am NOT using OpenSSL. Further, investigation is needed to determine if my environment can support ssh-agent. However, the security issue you mentioned is very valid and difficult. How do you recommend protecting private keys in an automated

Re: SSH & SFTP: Passphrase Problem + Libssh2 Correction

2010-07-09 Thread Peter Stuge
Paul Romero wrote: > How do you recommend protecting private keys in an automated > environment ? It's very straightforward. Move them as far away from the application as possible. The first step is to use an agent process. Protected mode, MMUs and the operating system offers some protection from

Re: SSH & SFTP: Passphrase Problem + Libssh2 Correction

2010-07-09 Thread Simon Josefsson
Peter Stuge writes: > Paul Romero wrote: >> How do you recommend protecting private keys in an automated >> environment ? > > It's very straightforward. Move them as far away from the application > as possible. > > The first step is to use an agent process. Protected mode, MMUs and > the operatin