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
Tag: jsch
Jsch running a remote jar with combined tail command is not working properly
I am trying to run a number of standalone spring boot jars on a remote linux server(on different ports) over SSH with JSch. I use tail on my command, because i need tomcat server logs. When i start service that runs standalone jars, some jars is not running. Here is a sample script that i use to run standalone jars
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”.