Hi Team,

I am using JSch module and have been successful in using it in most of the 
conditions. I am using standard way of connecting as provided in some of the 
examples which is working fine for me.

Now I have an additional requirement, SSH is behind the firewall, and following 
is the manner in which user is connecting to it from his shell:

  ssh firew...@username
  password: ********
  ssh mach...@username
  password ***************
  su - user
  password: *****

Once user fires this command, he can then fire any commands of interest in this 
session. I am wondering how to program this using JSch code in my java 
application.

Any help/ideas are welcomed.


Regards,
Amol Kulkarni
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to