> On Thu, Apr 30, 2015 at 6:21 PM, Michael Hekel <check...@gmx.de> wrote: >> I'm succesfully connecting with Jsch to our ssh jump server. >> From there I would like to run a ssh cmd. I'm able to run simple commands >> like "ls" but get the following errors if I run "ssh hostX ls" (where hostX >> is a valid ip). >> >> System.err﹕ Permission denied, please try again. >> System.err﹕ Permission denied, please try again. >> System.err﹕ Permission denied >> (publickey,gssapi-keyex,gssapi-with-mic,password). > > Try "ssh -v -v -v hostX ls"
Thanks. This helped understand the issue. I had to turn on agent forwarding: ((ChannelExec) channel).setAgentForwarding(true); Regards, Michael ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users