Hello All,

I have a scenario in which I am running the shell.java, from the
examples on a Unix box. I am using putty as the terminal. I am able to
connect to my user account on the unix box without issues using the java
code.

1. But, say that I want to connect to a functional account which uses a
public key, what are the steps that I need to follow for that ?

In fact, I did modifying the code. But theres an Auth Fail exception
coming up when I am trying to do that.

Looks like it is failing in the following code in
com.jcraft.jsch.UserAuthPublicKey:

        public boolean start(Session session) throws Exception {
                super.start(session);

                Vector identities = session.jsch.identities;

                byte[] passphrase = null;
                byte[] _username = null;

                int command;

                synchronized (identities) {
                        if (identities.size() <= 0) {
                                return false;
                        }

The identities.size() for me is a 0. And when I looked in
session.jsch.identities, its just creating a new vector.
2. But, where are the 'identities' getting set? I think the code is
expecting 'identities' with key values so that it can pull the key from
it.  

Any help on this would be appreciated.

Thank you,
Presley.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to