Questions tagged [j2ssh]

J2SSH is an object-orientated Java implementation of the SSH version 2 protocol.

J2SSH is an object-orientated Java implementation of the SSH version 2 protocol. It provides a rich, powerful, and extensible SSH API that enables developers to gain access to SSH servers and to develop entire SSH client/server frameworks. The API library provides a fully-featured SSH2 implementation specifically designed for cross-platform development. Higher level components, representing both the standard SSH client and SSH servers, are provided which implement the protocol specification for user sessions and port forwarding. The specification currently supports public key and password authentication and a full implementation of the SFTP protocol.

37 questions
0
votes
1 answer

How do I get rid of escape sequences when using SSHTools?

I am using SSHTools / J2SSH to connect to a server via SSH. Everything works fine, only problem is, that the output contains strange escape sequences / characters. I read somewhere, that these are color codes and that it is not an encoding…
Pwdr
  • 3,712
  • 4
  • 28
  • 38
0
votes
2 answers

can I use two ssh java lib in my java code?

I am using j2ssh but due to some reasons (which we cant detect yet) we decided to switch to new ssh lib. in j2ssh for 2 functions which are not giving expected result, we have to switch to new ssh (i have found vngx-jsch suitable) but only for 2…
user1145280
  • 371
  • 1
  • 2
  • 10
0
votes
1 answer

Send command via ssh and read ouput results

I have code to connect to a remote server via ssh and send 2 or more commands to it (for example: cd /export/home/ops/bin and "./viewlinkload –time 20131205-19") but I don't see the command executed and don't receive results. I need to get the…
Quochg
  • 11
  • 1
  • 2
0
votes
1 answer

SFTP j2ssh, can i connect without password or keys?

I have to connec to the server via sftp, but i will only have the user (which is an OS user), and IP, i wont have the password or direction of the keys, is there a way to connect and upload files in that way? i am ussing j2ssh.. thanks
DuSant
  • 970
  • 12
  • 25
0
votes
1 answer

sshtools.SftpClient.put failing with "No such file"

I've inherited a Java based project that includes a cron job to upload a file via SFTP to a third-party server. Here's the relevant code. String filePath = IUtil.getInstance().getProperties("cheetah_sftp_filepath"); try{ SshClient ssh = new…
SeanH
  • 317
  • 5
  • 9
0
votes
1 answer

Unable to execute command on server using j2ssh

I connected to a unix server through ssh and tried to execute a "ls" command and obtain it's output. The code is like this SessionChannelClient session = client.openSessionChannel(); session.startShell(); String cmd = "ls -l"; …
Kesavacharan
  • 318
  • 3
  • 14
-1
votes
1 answer

All Supported Ciphers in j2ssh Maverick 1.5.4

Lee: We are using your j2ssh Maverick 1.5.4. It works great. However, we found that the default ciphers are aes128-ctr and 3des-ctr only. But, according to API, there are many other ciphers supported in the library. How should I code it so that…
Mark
  • 1
  • 2
1 2
3