1
vote
1answer
14 views

How to check sftp read permission using jsch?

I know there is "getPermissions()" method but I don't know how to use it. How can I check using jsch if user can read files?
0
votes
1answer
18 views

How to get modulus and pubExp in java?

is it possible to retrieve the modulus and pubExp from a ssh public key such as the one below: ssh-rsa ...
-1
votes
0answers
28 views

How to visualize GUI running on Linux server to Linux Client machine using java code

I have a jar file running onto linux server from command from linux client machine. i need to redirecct its visualization to linux client machine using java code. I have used Jsch library to run linux ...
0
votes
0answers
26 views

rsync executed from java returns with file not found error

I am trying to execute a rsync command (atm testing locally) using Apache Commons Exec library and I get an error message, while executing the same command in terminal shows no problems. This is the ...
-1
votes
0answers
24 views

How to create a x11forwarding enabled connection from linux machine to other remote linux machine using java libraries

I am working on linux machine. i have a java Swing project on the same machine which opens GUI of jar file residing at another linux machine, it means i am executing a command (java -jar test.jar) ...
0
votes
0answers
38 views

Trouble with Mysql connection (max_allowed_packet) over ssh using java

I read some topics here about max_allowed_packet but I think my problem is diferent. I'm trying to create a class which creates the connection between me and my vps over an ssh tunel. Here's the ...
0
votes
1answer
46 views

JGit for showing information about remote git repository

I'm working on a java web application that deals with showing/editing ASCII (text) files on a Unix server. The total size of all the ASCII files is about 1 GB and the situation is as follows: Unix ...
2
votes
4answers
80 views

clj-ssh / JSch unable to load library 'c' on Windows

I've added clj-ssh as a dependency to a Leiningen project, and I can (use 'clj-ssh.ssh) but calling (ssh-agent {}) gives the error UnsatisfiedLinkError Unable to load library 'c': The specified ...
1
vote
1answer
48 views

Java JSch changing user on remote machine and execute command

I'm trying to connect to a host, then change the user using "su - john" and then execute a command as john. Is it possible with using only JSch? The problem is that after I create a session and open ...
0
votes
3answers
51 views

Java Run Thread on Another Machine

In Java, we can easily create a new Thread using new Thread(Runnable r). However, this uses Threads from our local machine. Is there a way to connect to another machine (via ssh) and run a function ...
1
vote
1answer
69 views

Reading a file in ssh server via Java

I want to read a file from SSH server and parse the lines into a list. I used Ganymed SSH libraries to connect and fetch the data. I wanted to read and parse the file named jboss-search14 I used the ...
2
votes
0answers
66 views

jsch : how to keep the session alive and up

I'm writing java GUI program for static route management using SSH. My code is as follows: import com.jcraft.jsch.*; import java.io.*; public class Konsep { String status; static String ...
0
votes
3answers
36 views

java -version is not working with SSH

I am trying to run java -version on a remote linux machine using ssh in the following manner- ssh [email protected] "java -version" I am getting bash: java: command not found. But java is installed ...
0
votes
1answer
53 views

Can a local Java program start jobs remotely via SSH using DRMAA?

How does DRMAA work? Can a local Java program using DRMAA start jobs on a remote cluster over SSH (so that nothing will need to be installed on the server-side)? Background: I'm developing a general ...
1
vote
3answers
206 views

Reading remote Ubuntu directory using ssh in java?

I want to read the content of a remote directory using java. The directory is on a machine running Ubuntu. Right clicking on the folder should give the share folder option and its installed samba ...
1
vote
2answers
134 views

Java Library for SSH SOCKS binding (Dynamic Port Forwarding)?

I'm looking for a way to connect to my remote server using ssh binding inside my java application. I enter the command like below inside my terminal to connect my server: ssh -D 1234 [email protected] ...
2
votes
1answer
94 views

Configuring known_hosts in jgit

Using jgit with gitolite for source control, I have an application that generates certain code on command and which we want to be committed to source control. The goal is to pull with a fast forward, ...
0
votes
1answer
41 views

Spawning a process using ssh and java

I know you can run a script via Bash terminal using the following command: ssh -n -f user@host "sh -c 'nohup /path/to/file/test.sh > /path/to/file/test.out 2>&1 &'" When we run this ...
-1
votes
2answers
62 views

Best practices for talking to cli interface from java over SSH? [closed]

I'm developing a graphical HPC client (in Java) that will talk to a command-line client (which doesn't need to be in Java) on the HPC system via SSH in order to do operations on the HPC system, as ...
2
votes
1answer
75 views

FIPS compliant SSH library for Java

I want to implement SCP (Secure Copy) functionality in my Java application to copy a file from the SSH server to another machine. My java application must be FIPS compliant and hence it uses SunPKCS11 ...
1
vote
1answer
51 views

SSH command can not start remote java process

I have a start function, and I put it in a script resides on a remote site, the function's code shows below. function start() { cd $install_dir mkdir -p logs export ...
0
votes
1answer
143 views

Connecting to Hadoop from Java app using SSH

I'm trying to connect to remote hadoop cluster, which isn't accessible just through HDFS. Right now it is being used in that way: user connects to Jump box through SSH (e.g. ssh ...
0
votes
5answers
213 views

ssh in java (run commands on another machine)

I was wondering whether there was a simple way to do this as part of a java program. I would like to be able to ssh into another machine and perform commands on that machine. A simple example would ...
0
votes
1answer
55 views

sqlplus missing output when using Java SSH API

I have a shell script (bash) that executes a sqlplus command, and it works perfectly when I run it from a terminal (or SSH clients like PuTTY or Xshell), what means I can read its output. Now I ...
-1
votes
1answer
193 views

Ubuntu 10.10 problems with Java install. -bash: java: command not found [closed]

I just bought fresh VPS with Ubuntu 10.10. I following this guide http://l2jserver.com/wiki/Setup_Server_-_Ubuntu for creating Lineage2 server, but this doesn't matter. I try to use command java ...
0
votes
0answers
48 views

jenkins running phing task cannot create folder inside /var/virtual running git clone

I am running Jenkins which in turn is running phing tasks. The phing task is simply git clone -b develop <ssh-url> <brand-new-folder-path> I checked that I can run ssh -t ...
0
votes
0answers
58 views

ssh remote access to java [closed]

So I am trying to connect to my computer at home and then run the java environment on that computer from a remote client through ssh. The following two steps of the output I am getting: Make the ...
0
votes
1answer
187 views

JSch - How to cope with interactive Linux commands

I have a code which allow me to connect through ssh, run a command and get response back.It works fine but only for the non-interactive commands (like: ls, df which gives the result back immediately ...
0
votes
0answers
167 views

Running SSH commands via Java with pseudo tty allocation

I'm trying to send remote commands via java using jsch api to establish a ssh connection. The problem is that I'm getting some errors that may be related to pseudo tty allocation. The thing is, if I ...
0
votes
2answers
159 views

How to run SSH commands on remote system through java program (followup)

I am trying to run commands/executables in a remote host through a Java program. Here is the code I got from a related thread. I CAN connect to the remote host and read the stream through the ...
0
votes
2answers
161 views

Remotely login to Linux System with java and run “grep”

I have a linux server running an asterisk, and I want to know it is restarted or what's happening in the server so i wrote a java app to read console. Like here ...
0
votes
1answer
983 views

File Transfer using Java JSch - SFTP

here is my code, which retrieves content of the file, on the remote server and display as output. package sshexample; import com.jcraft.jsch.*; import java.io.*; public class SSHexample { public ...
-2
votes
2answers
266 views

SSH server for testing [closed]

I am writing a Java Code to connect to SSH server using JSch. I have written the code, now have to test it. but i am not allowed to test in the production server. so is their any SSH server ...
1
vote
1answer
252 views

JConsole over ssh local port forwarding

I'd like to be able to remotely connect to a Java service that has JMX exposed, however it is blocked by a firewall. I have tried to use ssh local port forwarding, however the connection fails. ...
0
votes
2answers
66 views

Send SSH command when pressed to button

I have a small server running Ubuntu (12.04.1 LTS). I can control the server from putty but I want to do this with GUI. I know how to create Java applications with GUI. Anyway my question is, how to ...
0
votes
0answers
53 views

Capistrano starting Sunspot does not find Java

I am using Sunspot Solr and I am writing a Capistrano task to start/stop it. namespace :sunspot do task :start, :roles => :app do run "cd #{current_path} && ...
1
vote
2answers
72 views

Can't pipe Output of Hadoop Command

I want to run the following command: hadoop fs -copyToLocal FILE_IN_HDFS | ssh REMOTE_HOST "dd of=TARGET_FILE" However, when I try, all it does, is create an empty file on the target host and copy ...
1
vote
2answers
85 views

SSH Output always empty

I've been trying to figure out this problem for hours now and I cant seem to figure it out. I'm trying to use JSch to SSH to a Linux computer from an Android phone. The commands always work fine but ...
1
vote
2answers
101 views

Doing ssh to through java

I want to execute this command through a java code ssh abc@ubuntu I am using this code but it doesn't work completely, it doesn't log in to the server. import java.io.BufferedReader; import ...
2
votes
0answers
159 views

Indirect telnet connection with Java

Scenario I'm in a Java project where we have to communicate with the CLIs of other machines. Unfortunately, we can't connect to these other machines directly and another bad luck is that they only ...
-1
votes
1answer
107 views

Execute commands using ssh in java [closed]

Here is what I want to do in java: Open an ssh session ( remote or local). Send commands ( this is just an example): cleartool lsview cleartool setview cleartool catcs For ssh connection there ...
2
votes
0answers
41 views

Web Site implicit authentication (SSO) when using localhost

This might be a vague question (sorry), but I'd like to be able to authenticate into my web application without a username/password. Ideally it would be something like the SSH "passwordless login" ...
0
votes
1answer
78 views

Why do I see scrabbled output when using JSch?

I am trying to use JSch. I tried the example here Although I can connect the output is weird. I get the following: Last login: Thu Jan 31 19:44:25 2013 from 10.2.251.77 [1mcli:~ # [m And if I ...
0
votes
2answers
52 views

Setting JButton action changes the size of the button?

Trying to set up the UI using Netbeans' visual UI builder, but I want to add the action Listeners and action Events at a later time; After all components have been initialized. Strangely, all buttons ...
0
votes
2answers
147 views

Running commands in remote linux from java

I want to do a remote shell to a Linux system and run various commands e.g. to ps and grep for processes and kill them. I assume I can do something like: rsh that linux scripts do right?Is this the ...
0
votes
1answer
168 views

Does anyone know a Java SSH Library that supports Dynamic Port Forwarding? [closed]

I have searched the web like crazy for a couple of months by now and couldnt find any java SSH library that supports dynamic port forwarding (SSH -D option). I have found several libraries (like ...
0
votes
1answer
107 views

HBase first time using, error connecting to local host

Deployed a "joynet hadoop smartmachine" to tinker with HBase. It came with everything installed. I SSH with PuTTY, I go to the executable like this /opt/local/bin/hbase shell. All is well, then I try ...
1
vote
1answer
183 views

Creating an inputstream for use with JSCH API. (Java)

Why am I trying to do this? Right now I'm trying to make a multi tabbed SSH client for use with a few servers. I have 8 at the moment, soon to be 9. As you can imagine, there are a few redundant tasks ...
0
votes
2answers
87 views

JSCH: Is there a way to retrieve the prompt?

I'm using JSCH to access through SSH an host and then launch some commands. The host is not using a "common" OS, as it is a BNG: http://en.wikipedia.org/wiki/Border_Network_Gateway. I need to ...
0
votes
1answer
86 views

Get environment variables from a remote server

Is there a way in Java to get an environment variable from a remote server? I am currently executing: Runtime.getRuntime().exec(new String[] { "ssh", "myuser@myserver", "source myenvfile; echo ...

1 2 3 4 5 7
15 30 50 per page