Skip to content
Advertisement

Tag: jsch

Not able to execute a .csh script using jsch library – Exit 1

Im trying to use Jsch to execute a .csh script on a remote server. I am able to execute commands like cp, mv and ls. But when I try to execute a script that internally references some environment variables, the script is exiting with status 1. There is an INTERNAL_ENV_VARIABLE referenced inside script.sh that is not accessible when i run

Need to automate SSH commands to router

I need to find a way to automate ssh commands to my router. My goal is to make the router restart whenever I run the script from my Java program. I’m having some issues though. First of all, this is the sequence of output I get from my router’s ssh: First I do: which returns: I enter the password, “admin”.

Advertisement