From: Andrei Tchijov <atchijov@ma...> - 2006-07-05 15:49:22
What is/was the rational behind decision to keep identities
associated with JSch? Command line SSH allows to have unlimited
number of identity files and provides option (-i) to specify
particular identity file to be used when connecting to particular SSH
server. So it seems identity should be associated with Session (or
at the very least it should be possible to specify "favorite"
identity file for particular Session).
One obvious way to simulate this kind of "per-session" association
of identity files is to allocate new JSch object for each Session
object. Will it work? I looked into sources and it seems JSch
should not mind to have more than one instance allocated at the same
time. Is this the way to go? Is it possible to achieve "per-session"
association of identity files in any other way (without major surgery
Your thoughts/comments/suggestions will be highly appreciated.
Very best regards,