Hi everyone,

I'm facing a challenge regarding the use of JSCH.

When the account I'm trying to connect to via the PK auth mechanism, has the 
restriction SU only, I can only execute commands and not log onto the box.

As far as I know, through JSCH API I do have to connect first to the box and 
then I can execute commands, which as I mentioned above it is forbidden in my 
case.

Is there a way in JSCH to achieve the "ssh userName@hostName shellCommand" 
without having first issue "ssh userName@hostName" namely the connect method, 
and then at the prompt shell:command ?

Thank you in advance.

Regards.

Linux RH E.E. 5 32bits


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to