Discussion:
[JSch-users] Feature-Request: Accept InputStreams instead of Files
Moshe Elisha
2014-05-05 16:56:46 UTC
Permalink
Hey,

I know this is a (very) old thread but it is relevant for me.
Looking at the code and the changelog I can't see that this was implemented.

Was it implemented? Is it planned?

I need this feature as our private keys are stored in the DB and we don't
want to write them to disk just in order to use them in JSCH.

Thanks.
Moshe Elisha
2014-05-05 21:20:22 UTC
Permalink
I am referring this old thread
http://sourceforge.net/p/jsch/mailman/message/3862205/ which asks for a way
to provide a private key as InputStream instead of a file.
Post by Moshe Elisha
Hey,
I know this is a (very) old thread but it is relevant for me.
Looking at the code and the changelog I can't see that this was implemented.
Was it implemented? Is it planned?
I need this feature as our private keys are stored in the DB and we don't
want to write them to disk just in order to use them in JSCH.
Thanks.
Siano, Stephan
2014-05-06 12:24:02 UTC
Permalink
Hi,

Jsch allows to provide the private and public keys as byte arrays instead of files (Jsch.addIdentity()
) You shouldn’t need streaming for your private key (or known hosts
). Does this help you?

Best regards
Stephan

From: Moshe Elisha [mailto:***@gmail.com]
Sent: Montag, 5. Mai 2014 23:20
To: jsch-***@lists.sourceforge.net
Subject: Re: [JSch-users] Feature-Request: Accept InputStreams instead of Files

I am referring this old thread http://sourceforge.net/p/jsch/mailman/message/3862205/ which asks for a way to provide a private key as InputStream instead of a file.

On Mon, May 5, 2014 at 7:56 PM, Moshe Elisha <***@gmail.com<mailto:***@gmail.com>> wrote:
Hey,

I know this is a (very) old thread but it is relevant for me.
Looking at the code and the changelog I can't see that this was implemented.

Was it implemented? Is it planned?

I need this feature as our private keys are stored in the DB and we don't want to write them to disk just in order to use them in JSCH.

Thanks.
Moshe Elisha
2014-05-06 20:12:04 UTC
Permalink
Yes. I believe it does. Thanks!
Post by Siano, Stephan
Hi,
Jsch allows to provide the private and public keys as byte arrays instead
of files (Jsch.addIdentity()
) You shouldn’t need streaming for your
private key (or known hosts
). Does this help you?
Best regards
Stephan
*Sent:* Montag, 5. Mai 2014 23:20
*Subject:* Re: [JSch-users] Feature-Request: Accept InputStreams instead
of Files
I am referring this old thread
http://sourceforge.net/p/jsch/mailman/message/3862205/ which asks for a
way to provide a private key as InputStream instead of a file.
Hey,
I know this is a (very) old thread but it is relevant for me.
Looking at the code and the changelog I can't see that this was implemented.
Was it implemented? Is it planned?
I need this feature as our private keys are stored in the DB and we don't
want to write them to disk just in order to use them in JSCH.
Thanks.
Loading...