somanprabhu / sshxcute Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/sshxcute
Automatically exported from code.google.com/p/sshxcute
What steps will reproduce the problem?
1. ExecShellScript a shll scrip, the scrpt has a command to install a rpm file,
such as rpm -ivh **.rpm
2. The rpm has installed successfully
3. ssh.exec has no result return, and the programme running forever.
What is the expected output? What do you see instead?
The rpm install success and the programme finish.
But the programme cannot stop.
What version of the product are you using? On what operating system?
I used 1.0
Please provide any additional information below.
The ssh script is as follwo:
echo 'a'
rpm -ivh ***.rpm
echo 'b'
exit 0
Even I added exit 0, exec cannot return the result
Original issue reported on code.google.com by [email protected]
on 13 Jan 2014 at 7:12
Hi there,
I tried to run some jar file thru sshxcute, and it has been telling me this
error "Error message: Error: Unable to access jarfile platformTestCLI.jar",
while the fact is that I won't run into this problem by running thru command
line. Could you give some info to solve the problem regarding this? Thanks.
-Jing
Original issue reported on code.google.com by [email protected]
on 12 Nov 2014 at 7:37
What steps will reproduce the problem?
1. Able to execute a bash script on remote server successfully but unable to
provide the user input required by the script to complete its execution.
2.
3.
What is the expected output? What do you see instead?
Expeceted is able to execute interactive script
What version of the product are you using? On what operating system?
1.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Mar 2014 at 10:31
What steps will reproduce the problem?
1. executing a connect command
What is the expected output? What do you see instead?
No password to be shown. Password prints on screen
What version of the product are you using? On what operating system?
latest, Linux
Please provide any additional information below.
Either remove the line, or maybe print username instead
Original issue reported on code.google.com by [email protected]
on 4 Nov 2012 at 5:41
What steps will reproduce the problem?
1. simple exec of multiple commands to cisco device
2.
3.
What is the expected output? What do you see instead?
i need to get to the configuration prompt (exec "conf t") and configure ip
access-list by another 2 commands
only the first command is executed
What version of the product are you using? On what operating system?
v1.0 on windows 8,1 64bit
Please provide any additional information below.
separating the commands with "," does not work
Original issue reported on code.google.com by [email protected]
on 22 Feb 2014 at 6:20
Dears,
I use this framework and it is a great one, but i still want to download files
from the linux server the upload feature working so well what about download
files
If this feature is exist how to use it and if not how to add it?
Thanks
Original issue reported on code.google.com by [email protected]
on 27 Jan 2015 at 5:32
What steps will reproduce the problem?
1. Follow the steps mentioned in the Project Home. Add jar. It will give this
error.
2.
3.
What is the expected output? What do you see instead?
Expected : Connection should be successful. It shows exception :
com.jcraft.jsch.JSchException: Auth fail.
What version of the product are you using? On what operating system?
Putty : Release 0.60
OS : Windows Server
Please provide any additional information below.
Trying to connect to server which is successfull from Putty using same
credentials but not through Java Class file program.
Exception in Detail : com.jcraft.jsch.JSchException: session is down
at com.jcraft.jsch.Session.openChannel(Session.java:752)
at net.neoremind.sshxcute.core.SSHExec.exec(SSHExec.java:164)
at putty.cmdToPutty.main(cmdToPutty.java:30)
Original issue reported on code.google.com by [email protected]
on 17 Dec 2012 at 12:50
Just have started sshxcute and facing an weird issue. Not sure of this is fixed
in any of the patches or still not reported.
I have one ksh file that im invoking, when I directly login on the server and
excute the ksh file, the script gets executed without any issue, whereas when I
do same using sshxcute it errors out and fails while loading some external
libraries.
I'm using same login credentials while running directly and through sshxcute.
What version of the product are you using? On what operating system?
sshxcute 1.0 on Linux machine_Name 2.6.18-402.el5 i686 i686 i386 GNU/Linux
Original issue reported on code.google.com by [email protected]
on 15 Aug 2015 at 3:13
What steps will reproduce the problem?
1. Logger.getLogger().setThreshold(Logger.getLogger().getCaller(),
Logger.ERROR);
What is the expected output? What do you see instead?
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
at net.neoremind.sshxcute.core.Logger.getCaller(Logger.java:258)
What version of the product are you using? On what operating system?
sshxcute-1.0
Please provide any additional information below.
java 1.6
thanks
GS
Original issue reported on code.google.com by [email protected]
on 18 Mar 2014 at 9:23
What steps will reproduce the problem?
1. upload a simple test.sh to remote host.The host has already set $my_env in
.bash_profile
#/bin/bash
echo "hello, $my_env"
2. Result res = ssh.exec(new ExecShellScript("/xxx/xxx/test.sh"));
3. Check the output
What is the expected output? What do you see instead?
I expect it will output "hello, some_value", but it only outputs "hello,"
What version of the product are you using? On what operating system?
Latest version.
OS: Redhat AS5, x86_64
Please provide any additional information below.
N/A.
Original issue reported on code.google.com by [email protected]
on 13 Jul 2012 at 5:14
嗨,能不能把Code
licence换成Apache或者BSD,否则别人要用你的代码的话,就必须�
��用GNU的开源licence了。谢谢
Original issue reported on code.google.com by [email protected]
on 22 Jul 2011 at 7:53
What steps will reproduce the problem?
1. connect using ConnBean
2. use ExecShellScript to execute dummy script on HP unix server
3.
What is the expected output? What do you see instead?
Script should run and give proper response,
but it is giving "Error message: ksh cannot execute"
What version of the product are you using? On what operating system?
java code executing on Windows and unix is of HP
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Sep 2013 at 10:22
What steps will reproduce the problem?
1. Login with a normal user using normal way to connect
For eg. Command-> ConnBean cb = new ConnBean(ip,username,password);
ssh = SSHExec.getInstance(cb);
ssh.connect();
2. Once connected try to execute following command:
CustomTask pwd3 = new ExecCommand("sudo su -userid ") ;
ssh.exec(pwd3);
What is the expected output? What do you see instead?
Expected output: able to login as a sudo user
Error message: sudo: sorry, you must have a tty to run sudo
What version of the product are you using? On what operating system?
Please provide any additional information below.
exception detail net.neoremind.sshxcute.exception.TaskExecFailException: The
task has failed to execute
Original issue reported on code.google.com by [email protected]
on 7 Mar 2013 at 4:50
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Jul 2013 at 12:14
What steps will reproduce the problem?
1. it is working fine . i can connect to remote unix system and can run command
and script as well .
2. actually i made a GUI application in which i can give IP , User ID and
PASSWORD manually .to connect to a perticular System .
3. But the problem is that when i tried to connect to different system by
giving new IP , ID and PASSWORD then it always take the first IP , ID and
PASSWORD and always connect to the first remote system only that i gave first
after execution of application even have change the SSHExec reference for each
connection .
What is the expected output? What do you see instead?
it should connect to new system when i give it new IP , ID and PASSWORD .
but it always make connection with the first one only ...!!
What version of the product are you using? On what operating system?
sshxcute-1.0.jar
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Apr 2013 at 7:58
What steps will reproduce the problem?
1.
2. ssh.connect();
3. CustomTask sampleTask = new ExecCommand("sudo -S su - user");
stuck over here
I want to do the folowing thing like sudo su - <UserName>.it will prompt for a
password.To avoid the prompting i am using like this sudo -S su - netaware.
The method works well in command prompt but in ssh execute.it is getting stuch
with the following log.
trying to connect
SSHExec initializing ...
Session initialized and associated with user credential password
SSHExec initialized successfully
SSHExec trying to connect user@host
SSH connection established
Command is sudo -S su - user
Connection channel established succesfully
Start to run command
What is the expected output? What do you see instead?
should come out of the loop
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Sep 2013 at 2:50
What steps will reproduce the problem?
1. Connect any SBC device using it's credentials
2. try to execute any command (e.g. show sip, show ip, etc...)
3. execution failed...output is showing error code as -1 and No ERROR message
is shown
What is the expected output? What do you see instead?
Expected output should be what u get on putty console...BUT I see ERROR CODE as
-1 and ERROR MESSAGE nothing is shown as error...blank error mesage.
What version of the product are you using? On what operating system?
sshxcute-1.0.jar
Please provide any additional information below.
I am getting valid output when I connect to my another UNIX box
environment...BUT when it is a SBC device, commands that SBC device takes and
execute properly on PUTTY, does not execute properly using sshxcute-1.0.jar
library...Please help ASAP.
Original issue reported on code.google.com by [email protected]
on 16 Jun 2014 at 8:05
What steps will reproduce the problem?
1. connect to remote machine
2. execute command - "pwd"
3. execute command - "cd /some/folder/location"
4. execute command - "pwd"
What is the expected output? What do you see instead?
In step 4 i was expected out put /some/folder/location. Instead disaplyed /root.
What version of the product are you using? On what operating system?
Latest
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2012 at 12:22
What steps will reproduce the problem?
1. Execute 3-4 commands on a server through sshxcute
2. Repeat the step for 3 more servers in the program
3. Results for some commands are not displayed
What is the expected output? What do you see instead?
Output for only a few queries are populated as output. For most other queries,
no result is returned
What version of the product are you using? On what operating system?
version1.0 on Mac book pro
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 25 Jul 2013 at 10:20
I am trying to use sshxcute with play framework for my Java application.
I am unable to use it because I have to make an entry to my build.sbt (similar
to pom.xml).
Could someone tell me groupID , artifact ID and the version so that I can make
that entry in the build.sbt?
Original issue reported on code.google.com by [email protected]
on 11 Sep 2014 at 11:20
Really good work and able to use it for a single server, but in a program if i
want to connect with multiple servers, here even after creating difference
ConnBean also, i am getting the single SSHxcute, it is a bug.
Based on the given ConnBean object, it should return difference instance.
Original issue reported on code.google.com by [email protected]
on 5 Sep 2013 at 9:31
Below are my requirements. Please let me know if same can be implemented with
sshxcute
1. I need to connect to remote server using user name, password and private
key. Without passing key authentication fails. Is there anyway to pass private
key while connecting through sshxcute?
2. Is it possible to implement password ecryption and decryption with
sshxcute?I can do the encryption but sshxcute takes care of connecting to the
server, so decryption needs to be injected in the existing behavior. Is it
possible?
What steps will reproduce the problem?
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
I'm using sshxcute in both windows and unix machines
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Jul 2015 at 6:58
What steps will reproduce the problem?
1. I import the library and create a valid class that logs on a remote linux
machine and sends a CustomTask command1 = new ExecCommand("echo 123 > t.txt");
2.
The output in Eclipse is :
TIMEOUT => 100000
HALT_ON_FAILURE => true
INTEVAL_TIME_BETWEEN_TASKS => 5000
SSH_PORT_NUMBER => 22
ERROR_MSG_BUFFER_TEMP_FILE_PATH => C:\Users\m.a\sshxcute_err.msg
SSHExec initializing ...
before exec
before connect
Session initialized and associated with user credential dev123
SSHExec initialized successfully
SSHExec trying to connect [email protected]
Kerberos username [m.a]:
m.a being the user logged on the windows machine
3.
What is the expected output? What do you see instead?
The loggin is not succesfull .The sshxcute.log outputs :
[16:19:49] INFO: TIMEOUT => 36000
[16:19:49] INFO: HALT_ON_FAILURE => false
[16:19:49] INFO: INTEVAL_TIME_BETWEEN_TASKS => 5000
[16:19:49] INFO: SSH_PORT_NUMBER => 22
[16:19:49] INFO: ERROR_MSG_BUFFER_TEMP_FILE_PATH => E:\123.err
[16:19:49] INFO: SSHExec initializing ...
[16:19:49] INFO: Session initialized and associated with user credential
dev123
[16:19:49] INFO: SSHExec initialized successfully
[16:19:49] INFO: SSHExec trying to connect [email protected]
What version of the product are you using? On what operating system?
The Eclipse os is WIN7 64 and the linux machine is Ubuntu 32
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Nov 2014 at 3:45
Attachments:
What steps will reproduce the problem?
1. Make a connection to a remote server A and then disconnet it
2. Make a new connection to a different server B
3. The connection will still be made to the same old server A
What is the expected output? What do you see instead?
The connection is always being made to the same server and even if i set the
existitng connection to null, i am not able to set the SSHExec to call a
different server.
What version of the product are you using? On what operating system?
1.0
Please provide any additional information below.
I want to make connection to multiple servers to provide information on a
portal about application current status. Once one connection is made and
information fetched, i want to make a new call to a different server and fetch
some other information. But this is not happening.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2012 at 9:02
What steps will reproduce the problem?
1. Run command datee
2. Run custom command ns
What is the expected output? What do you see instead?
Case 1:- The Result as isSuccess as false and errorMsg = bash Command not
found, sysout has ""
Case 2:- The Result as isSuccess as false and errorMsg = "" and sysout the
exception trace.
What version of the product are you using? On what operating system?
Latest version on unix
Please provide any additional information below.
In SSHExec class method exec(CustomTask task)
should not be the code as mentioned below.
//r.sysout = sb.toString();
if (task.isSuccess(sb.toString(), channel.getExitStatus())) {
r.error_msg = "";
r.isSuccess = true;
r.sysout = sb.toString();
} else {
r.error_msg = SSHExecUtil.getErrorMsg(SysConfigOption.ERROR_MSG_BUFFER_TEMP_FILE_PATH);
if( r.error_msg == null ) {
r.error_msg = sb.toString();
r.sysout = "";
}
r.isSuccess = false;
logger.putMsg(Logger.INFO,"Execution failed while executing command: " + task.getCommand());
logger.putMsg(Logger.INFO,"Error message: " + r.error_msg);
if (SysConfigOption.HALT_ON_FAILURE)
{
logger.putMsg(Logger.ERROR,"The task has failed to execute :" + task.getInfo() + ". So program exit.");
throw new TaskExecFailException(task.getInfo());
}
}
Original issue reported on code.google.com by [email protected]
on 27 Apr 2012 at 7:25
What steps will reproduce the problem?
1. ssh = SSHExec.getInstance(cb);
2. as the server is down , connection refused.
3.
What is the expected output? What do you see instead?
as the connection refused test case should get failed, but throwing an
exception as below, and test is said as passed,
Connect fails with the following exception: com.jcraft.jsch.JSchException:
java.net.ConnectException: Connection refused: connect
com.jcraft.jsch.JSchException: session is down
at com.jcraft.jsch.Session.openChannel(Session.java:752)
at net.neoremind.sshxcute.core.SSHExec.exec(SSHExec.java:164)
session is down
Return code: 0
error message: null
How can I make the test fail when connection failed.
Original issue reported on code.google.com by [email protected]
on 11 Jun 2014 at 7:44
What steps will reproduce the problem?
1. try to execute the asu command followed by some other command like cd
2.
3.
What is the expected output? What do you see instead?
Execution should go further and control should come out of ASU command
What version of the product are you using? On what operating system?
Latest
Please provide any additional information below.
/opt/sysadm/bin/asu -a 2315114 -u gfeint01 -r 'GFE Install'
cd /home/dass5/test
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 9:59
when i do ssh.exec() and uploadSingleDataToServer()
com.jcraft.jsch.JSchException: session is down
at com.jcraft.jsch.Session.openChannel(Session.java:752)
at net.neoremind.sshxcute.core.SSHExec.exec(SSHExec.java:164)
at com.standard.business.healthcheck.HealthCheckConutExecutor.main(HealthCheckConutExecutor.java:78)
Original issue reported on code.google.com by [email protected]
on 12 Jul 2012 at 8:28
What steps will reproduce the problem?
1. create obj for ConnBean
ConnBean cb = new ConnBean(hostname,username,password)
2. SSHExec.getInstance(cb);
SSHExec ssh = SSHExec.getInstance(cb);
ssh.connect();
3. ssh.uploadAllDataToServer(localdir, destination);
What is the expected output? What do you see instead?
Expected output: it should be upload all file to destination location.
Instead of this it is throwing error with exception:
java.lang.ArrayIndexOutOfBoundsException: 1
at net.neoremind.sshxcute.core.SSHExec.traverseDataDir(SSHExec.java:523)
at net.neoremind.sshxcute.core.SSHExec.traverseDataDir(SSHExec.java:518)
at net.neoremind.sshxcute.core.SSHExec.uploadAllDataToServer(SSHExec.java:265)
What version of the product are you using? On what operating system?
I am using sshxcute1.0 and os is win7 64 bit
Please provide any additional information below.
Original issue reported on code.google.com by i.ramandas
on 29 Aug 2013 at 3:43
What steps will reproduce the problem?
1. establish an ssh session with redhat
2.
3.
What is the expected output? What do you see instead?
"Command Line is starting up"
What version of the product are you using? On what operating system?
on windows inside of netbeans and establishing an ssh connection with Redhat
Please provide any additional information below.
I want the program I put together to wait for the server to complete priting
its login banner before excuitng a command. this time varies from one server to
another
Original issue reported on code.google.com by [email protected]
on 24 Oct 2014 at 3:57
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What I see: Only the session to first server is maintained
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 25 Jul 2013 at 11:45
What steps will reproduce the problem?
1. call a shell script inside another shell script.
2. from sshxcute call the parent shell script.
3. execute the program , you will get child shell script not found as result.
What is the expected output? What do you see instead?
if I run the script directly in unix, it is executing correctly and giving
result. But thru sshxcute it is failing with child shell script not found. But
the child script found in the unix directory.
What version of the product are you using? On what operating system?
sshxcute-1.0.jar
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Apr 2014 at 5:14
This is more of query rather than a defect / issue.
Using sshxcute, can we can we do a nested ssh to connect to a remote server.
The scenario is like this -
Local Desktop ---> Intermediate Server --> Destination Server.
The network setup is such that I can not directly ssh Destination Server.
First from my Local Desktop (this has all my java code), I need to ssh
Intermediate Server. And then from Intermediate Server, I need to ssh
Destination Server.
Is it possible ?
Regards,
Kapil.
Original issue reported on code.google.com by [email protected]
on 21 May 2013 at 8:45
What steps will reproduce the problem?
1. connect the ssh
2. execute the command "echo $XXX_HOME" to read environmental variable
3. there is no result in sysout variable.
What is the expected output? What do you see instead?
value of environmental variable
What version of the product are you using? On what operating system?
latest
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 1 Feb 2012 at 5:52
What steps will reproduce the problem?
1. I want to run a certain ssh command at the background. The command executes
correctly, but it won't return back to calling function.
2. The same ssh command, when run through main function runs correctly and it
return the control back to calling function
3.
What is the expected output? What do you see instead?
After executing the ssh command, it should return the control to the calling
function & carry on with the rest of the program. Instead, it gets stuck at one
place with output as "Start to run command". and does not move forward.
What version of the product are you using? On what operating system?
sshxcute1.0 on fedora14
Please provide any additional information below.
I am actually starting a remote server.
Original issue reported on code.google.com by [email protected]
on 3 Dec 2013 at 1:44
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.