Re: [JSch-users] Execute ssh cmd on remote host
Status: Alpha
Brought to you by:
ymnk
|
From: Atsuhiko Y. <ym...@jc...> - 2015-04-30 11:17:33
|
Hi, On Thu, Apr 30, 2015 at 6:21 PM, Michael Hekel <che...@gm...> 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" Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk |