All Questions
536 questions
0
votes
0
answers
57
views
JSch getSession(username, hostname) use [hostname].local instead of ip address
I am connecting JSch with Raspberry Pi. In getSession(username, hostname);, the hostname is ip address. However, the ip of Pi changes everytime reboot. It is possible to use [hostname].local or [...
-1
votes
1
answer
153
views
JSch session.connect error : Algorithm negotiation fail
Trying to connect to SFTP server via Jsch , I am using com.github.mwiede:jsch:0.1.72
Get following error at: session.connect().
I checked another SO(JSchException: Algorithm negotiation fail) but the ...
0
votes
0
answers
70
views
Improving performance of remote command execution on Exchange Server using SSH
My basic requirement is to integrate/ connect with on-premise exchange server and perform
CRUD operations. I want to use Java to implement this client. This Java client will be running on a Unix ...
1
vote
0
answers
65
views
Unable to read command output using JSch [duplicate]
I'm trying to login to remote session using JSch Channel shell and execute simple shell command and trying to read the command output with the following code -
private static Session getSession() {
...
0
votes
1
answer
807
views
Jsch getting disconnected on trying to connect to SFTP server under AWS Transfer Family
I am trying to use Jsch to connect to a SFTP server. My code looks like below
public void putFile(
final SftpConfig sftpConfig, final InputStream inputStream, final String remoteFileName) {
...
0
votes
0
answers
243
views
Apache MINA SSH shell session - List of available commands
I am working with Apache MINA SSHD (Backend) and Javascript (frontend) to make a terminal on the browser that connects to the SSHD on the server and create an SSH connection.
This is working fine and ...
-1
votes
1
answer
172
views
Reading file data from Multiple SFTP servers using JSch
Could any one provide info on, how to connect to multiple SFTP servers with Java JSch client?.
I have around Four remote SFTP servers containing files, and expectation is read the files from all the ...
1
vote
1
answer
3k
views
JSch End of IO Stream Read
I'm testing out JSch to send SSH command to a remote server. Here's a snippet of my code
try {
session = new JSch().getSession(username, host);
session.setPassword(password);
session....
0
votes
1
answer
174
views
How to handle resources in JSCH exec correctly?
I've found example of ssh connection:
public static void listFolderStructure(String username, String password,
String host, int port, String command) throws Exception {
...
0
votes
0
answers
389
views
Port forwarding using JSCH: Expected solution does not work, and the solution which does work makes no sense to me
I have a reasonably simple requirement: I need to open a SSH connection to a Remote server from my Java server using JSCH. I don't have direct access, so I need to do it via a Jump server.
First I ...
1
vote
0
answers
4k
views
com.jcraft.jsch.JSchException: Auth fail whith public key authentication
I'm trying to create a ssh client in java in order to run remote command on an appliance.
With Username/Password authentication I havent' problem, it works fine, but with Public Key Auth it don't ...
0
votes
1
answer
781
views
Android VpnService using JSch SSH-Connection: It connects to the server, but it does not have access to the Internet
I am using the source below to connect to the server via SSH. There aren't any errors in the program.
The key icon will appear at the top of the mobile screen:
VPN Connected Image1.
But I do not have ...
1
vote
1
answer
90
views
Is reading InputStream required to execute command (nohup) on remote SSH server using JSch?
I'm trying to execute a script in background with nohup and want to disconnect without reading output. Is it required to get and read input stream channel.getInputStream(); in.read(...) in this case?
...
1
vote
1
answer
750
views
Communicate through JSch SSH tunnel with remote process/server
I'm trying to do programmatically in JSch what works fine in Bash. I set up an SSH tunnel and then communicate through the tunnel. I'm supposed to send an authentication string every 10 seconds or ...
2
votes
1
answer
743
views
How to use private key without password in JSch?
I am trying to use JSch to SFTP a file to a remote location. Per this article, when you do SFTP, you can use either a private key or a password for authentication. We are doing private-key ...