Hi,

   +-From: Chinmay Shepal <[email protected]> --
   |_Date: Wed, 9 Jan 2013 12:56:54 +0530 __
   |
   |Our setup here is like my server resides behind gateway. So first I need to
   |do ssh to gateway and from there I need to ssh to my server. I am using
   |following code.

It seems you have not given any credential for the command
"ssh [email protected]" on the host, "xx.xx.xx.xx".

It may not be your requested solution, but how about using port-forwarding?
Try 
  http://www.jcraft.com/jsch/examples/JumpHosts.java.html


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to