Hi Chris, after sending the mail i found a trick which works for me. You can create a new class in your project but in the package com.jcraft.jsch >From this class you can call the package private method >IdentityFile.newInstance("keyFileContent-" + keyFileContent.hashCode(), >keyFileContent.getBytes(), null, jSch);
That works for my cases so far. But it would be nice to have support for this in the official API cheers Johannes On Aug 10, 2010, at 10:57 PM, Chris-Werner Reimer wrote: > >> Hey jsch community, >> >> is it possible to specify a string (content of the key-file) as Idendity ? >> Looking at the code i found no way in doing it... >> >> cheers >> Johannes >> >> > > This is exactly what I'm trying to achieve. I might have identified a > function meant for this purpose but it doesnt work, yet. You might want > to have a look at what I wrote in "pubkey-auth with reading key from > String instead of a file" around 2010-08-10 14:17 on the List. There is > a function that, as I understand the docs, should do this. Other from > that, I didnt find anything, either. This should be a common usecase, > shouldnt it? ;) > > Chris > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > JSch-users mailing list > JSch-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jsch-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users