Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 32 results for
jsch
- Page 1
Problem while doing sftp using Jsch in java
Programming
Software Development
10 Years Ago
by manalibhadula
… will be appriciated. `Inline Code Example Here`
JSch
jsch
= new
JSch
();
jsch
.setKnownHosts("known_hosts.txt"); session =
jsch
.getSession(sftpUser, sftpHost, sftpPort); Hashtable<…
Re: Problem while doing sftp using Jsch in java
Programming
Software Development
10 Years Ago
by manalibhadula
hi The
Jsch
with StrictKey Checking true worked, when i gave path to the public key generated.
Re: transfer file from local server and to remote server (Jsch)
Programming
Software Development
10 Years Ago
by manalibhadula
… Example Here` File folder = new File("Pathofthefolder");
JSch
jsch
= new
JSch
(); session =
jsch
.getSession(sftpUser, sftpHost, sftpPort); session.setPassword(sftpPaswd); java.util…
Files names through JSCH, using xstream
Programming
Software Development
13 Years Ago
by c.pentasuglia
… a nutshell i'm working with a program that uses
JSCH
and xstream to zip a file, and send it to…
transfer file from local server and to remote server (Jsch)
Programming
Software Development
10 Years Ago
by manalibhadula
Can anyone help me how to pick all the files(many files) of some particular extention(.csv) and transferring it to remote server using
Jsch
channel. Please help. Regards
Re: Files names through JSCH, using xstream
Programming
Software Development
13 Years Ago
by NormR1
Is it the server that blindly writes the file? Can you get a list of files on the server so you know what files exist?
Re: Files names through JSCH, using xstream
Programming
Software Development
13 Years Ago
by c.pentasuglia
The file is being written on my side in the java program, then just being sftp over to the server. I tried to run an ls command on the folder, and save the output in the logfile, but the logfile included several other pieces of info like time and date. Idealy i'd like just a txt file list of the names so i can fetch that file, then compare my …
Re: Files names through JSCH, using xstream
Programming
Software Development
13 Years Ago
by c.pentasuglia
I actually just figured out how to list the filenames into a text file, and i can send that file back. Now the question is how do i compare the name of the file im sending to the names in the text file?
Re: Files names through JSCH, using xstream
Programming
Software Development
13 Years Ago
by NormR1
Open the text file and read its contents into a String array or arraylist that you can search.
Re: Files names through JSCH, using xstream
Programming
Software Development
13 Years Ago
by c.pentasuglia
Gotcha, that's what i was thinking. I just got it working, i fetched the file from the server, then used the buffer to read it into the program, then compared the contents of the file, to the string. Thanks for the help!
Re: transfer file from local server and to remote server (Jsch)
Programming
Software Development
10 Years Ago
by stultuske
help you how ? by writing the code ? no. we're not coders-for-hire. what have you tried so far ?
Re: transfer file from local server and to remote server (Jsch)
Programming
Software Development
10 Years Ago
by stultuske
and what is the point you are having trouble with ?
Re: transfer file from local server and to remote server (Jsch)
Programming
Software Development
10 Years Ago
by manalibhadula
Added this below line and it is working fine:- channel = session.openChannel("sftp"); channel.connect(); channelSftp = (ChannelSftp) channel;
Removing Directories and subdirectories in SFTP server using Java
Programming
Software Development
11 Years Ago
by Varunkrishna
… session = null; Channel channel = null; ChannelSftp channelSftp = null; try {
JSch
jsch
= new
JSch
(); session =
jsch
.getSession(SFTPUSER,SFTPHOST,SFTPPORT); session.setPassword(SFTPPASS); java.util…
Not able to access jar files from servlet
Programming
Web Development
13 Years Ago
by raul8
… = "Unix11!"; int port = 22; try {
jsch
= new
JSch
(); session =
jsch
.getSession(uname, host); // Creating Session session.setConfig(props); // …servlet ExecuteServlet threw exception java.lang.NoClassDefFoundError: com/jcraft/
jsch
/
JSch
at servlets.ExecuteServlet.runCommand(ExecuteServlet.java:64) at servlets…
Eclipse, Aptana, RadRails installation help on centos
Programming
Web Development
12 Years Ago
by brynFlew
….r361_v20100825-0800 No repository found containing: osgi.bundle,org.eclipse.
jsch
.core.source,1.1.200.I20100505-1245 No repository found… containing: osgi.bundle,org.eclipse.
jsch
.ui.source,1.1.300.I20100505-1245 No repository found…
Program to transfer files using sftp from hp unix machine to a remote pc
Programming
Software Development
13 Years Ago
by noobrobot
… connect to the sshd server using a java program(using
jSch
library) from the remote pc? 2.After making such a…
Re: voice recognition in java using sphinx
Programming
Software Development
13 Years Ago
by Tajinderpal
….jai.PlanarImage sshexec : Missing dependency com.jcraft.
jsch
.Logger wlrun : Not Available (the implementation class… not present) scp : Missing dependency com.jcraft.
jsch
.Logger stlist : Not Available (the implementation class… not present) sshsession : Missing dependency com.jcraft.
jsch
.Logger starteam : Not Available (the implementation class …
Re: Download a file from remote server to local machine using java program by invoking sh
Programming
Software Development
14 Years Ago
by masijade
Why not "write the download" in Java? How is it being downloaded? If by FTP google for an FTP library (apache provides one), if by http, see the API docs for HttpURLConnection, if by SSH see [url=http://www.jcraft.com/
jsch
/]
JSch
[/url].
Re: File transfer using scp
Programming
Software Development
13 Years Ago
by ejosiah
And where does java come into ur requirement? are you copying from windows to unix or unix to unix; there are ways to do this without java but if you want to use java then look at this api [URL="http://www.jcraft.com/
jsch
/"]
jSch
[/URL]
Re: how to access an application from the Domain Server
Programming
Software Development
17 Years Ago
by masijade
…. If its a Unix environment then I would suggest using
JSch
(for ssh protocol) and execute the application on the server…
Re: I want to copy a file from one host to another host
Programming
Web Development
16 Years Ago
by masijade
…]shouldn't[/i] do this from a JSP), check out
JSch
from JCraft ([url]www.jcraft.com)[/url]. It is a…
Re: I want to copy a file from one host to another host
Programming
Web Development
16 Years Ago
by masijade
Like I said, try
JSch
.
Re: ssh server in java
Programming
Software Development
16 Years Ago
by masijade
[url]http://www.jcraft.com/
jsch
/[/url]
Re: open ports on firewall..
Programming
Software Development
15 Years Ago
by masijade
…. If no, is there an SSH access? If yes, use
JSch
from JCraft. If no, is there a telnet access? If…
Re: open ports on firewall..
Programming
Software Development
15 Years Ago
by musthafa.aj
i seen
JSch
from JCraft ... it shows jhttptunneling... this is my code... [code=…
Re: Java ssh to server
Programming
Software Development
13 Years Ago
by DavidKroukamp
…/sshd/]Apache SSHD[/url] and [url=http://www.jcraft.com/
jsch
/]Java Secure Channel[/url] and here is how you would…
Re: Removing Directories and subdirectories in SFTP server using Java
Programming
Software Development
11 Years Ago
by masijade
traverse the directory and remove all sub directories, and all sub directories of the sub directories, etc, a recursive method will suffice.
Re: Not able to access jar files from servlet
Programming
Web Development
13 Years Ago
by peter_budo
Where did you placed this JAR file? Two options available TOMCAT_DIR/lib if you want library to be available globally to any project deployed on this server or TOMCAT_DIR/webapps/YOUR_PROJECT/WEB-INF/lib to be available to only your project
Re: Not able to access jar files from servlet
Programming
Web Development
13 Years Ago
by raul8
[QUOTE=peter_budo;1655155]Where did you placed this JAR file? Two options available TOMCAT_DIR/lib if you want library to be available globally to any project deployed on this server or TOMCAT_DIR/webapps/YOUR_PROJECT/WEB-INF/lib to be available to only your project[/QUOTE] Thank you...placed jar in tomcat\lib...working now.. but can u please …
1
2
Next
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC