1

I am able to connect to a linux box using Jsch. Now i need to tunnel/ssh to another linux box from here by doing a SUDO as a different user who has priviledges. I saw one post to use PROXYSSH class (How to SSH to a server behind another SSH server using JSch?) but i do not see any such class here (http://epaul.github.io/jsch-documentation/simple.javadoc/). Any help would be appreciated.

Community
  • 1
  • 1
  • If you run `sudo -u echo hi` does it work, or does it ask you for a password you don't have? – Will Jan 24 '16 at 09:10

0 Answers0