Hi guys.... i am using SSH to connect to a linux machine using a java code running on windows.I am calling session.executeCommand()
method to execute a command on the remote machine but the execution fails and am getting the following output :
INFO: Command is touch /root/sshtest.txt
Feb 1, 2011 12:40:42 PM com.sshtools.j2ssh.connection.ConnectionProtocol sendChannelRequest
INFO: Sending exec request for the session channel
Feb 1, 2011 12:40:42 PM com.sshtools.j2ssh.connection.ConnectionProtocol sendChannelRequest
INFO: Waiting for channel request reply
Feb 1, 2011 12:40:42 PM com.sshtools.j2ssh.connection.ConnectionProtocol sendChannelRequest
INFO: Channel request failed
Feb 1, 2011 12:40:42 PM com.sshtools.j2ssh.connection.ConnectionProtocol closeChannel
INFO: Local computer has closed channel 0[session]
please reply if you can track down the problem with execution of command.